-
Hi everyone, i made a paint program, and i made it where the user clicks a + or - button to make the brush bigger or smaller, and i used the circle method to draw the brush at its current size on the form, everything works fine as i make it bigger, but as i click the - button, the circle gets smaller, but the outer edges of previous circles are still visible, which doesn't look too great. Anyone have any ideas on how i could fix this? Thanks for any help!
-
You might try clearing the screen to erase old circles, and make sure autoredraw is set true. Autoredraw is set in either the properties at design-time or during run-time with the following code:
Form1.AutoRedraw = True
You can clear everything drawn on a form or picture box using the command:
Form1.Cls 'erases everything previously drawn
You will just have to experiment a little. If the .Cls isn't what you want, you could write a white circle over the old circles so they are invisible.
-lp