Hello again :)
So; I've drawn this rectangle
and I want to clear it.vb Code:
Dim zr As New Rectangle(100, 100, 100, 100) e.Graphics.DrawRectangle(Pens.Red, zr)
any idea?
Printable View
Hello again :)
So; I've drawn this rectangle
and I want to clear it.vb Code:
Dim zr As New Rectangle(100, 100, 100, 100) e.Graphics.DrawRectangle(Pens.Red, zr)
any idea?
e.Graphics.Clear or something like that.
If you want to clear only that part, just draw over it again. Drawing twice clears it.
Well you should be painting it in the Paint event, so invalidate the control that you are painting this on, but don't redraw the rectangle.