Help! Paint Program, layers, also undo/redo...
Posted on 2003-03-19
I've been creating a basic paint program and i've been trying to figure out how to make a foreground and background layer on my PictureBox, the picture box is named "Canvas" how would i go about creating a foreground and background layer? i was going to add a command button so the user can click on it and it will switch layers.. help?
Also i wanted to create an undo redo system for the paint program, (i thought about this when it started to get annoying when you made mistakes drawing in it.)
For the foreground and background swicther button i was going to make a command button that when you click on it it switches its caption everytime its clicked, like original state would be background. The user clicks on it and the layer they are on would be switched to foreground, and the command button would save foreground on it. I couldn't figure how to do any of this, thank you for your help or direction.