N
news.microsoft.com
Can someone give me a suggestion about how WinForm handle the sequence of
controls paint and user paint graphic object ?
the problem:
1. use the winform wizard to generate an application.
2. Drop a few buttons on the form.
3. In mouseup event, call Invalidate()
4. In the Paint event, add this line:
e.Graphics.DrawRectangle(new Brush(Color.LightBlue, 3), 5, 5, 50, 50);
the new rectangle is always drawn under the button controls. How can I draw
a rectangle above button controls?
Cheers
Mike
controls paint and user paint graphic object ?
the problem:
1. use the winform wizard to generate an application.
2. Drop a few buttons on the form.
3. In mouseup event, call Invalidate()
4. In the Paint event, add this line:
e.Graphics.DrawRectangle(new Brush(Color.LightBlue, 3), 5, 5, 50, 50);
the new rectangle is always drawn under the button controls. How can I draw
a rectangle above button controls?
Cheers
Mike