I just found a form which overrides OnPaintBackground. The weird thing is that it is never called! Like, at all. Why is this? The form is refreshed, moved, resized, etc, etc, so it should have to do some repainting right?
+3
A:
Does it have SetStyle(ControlStyles.UserPaint, True) set? Or, does it have a control with Dock set to Fill?
Stuart Dunkeld
2009-03-13 12:20:10
There is no SetStyle UserPaint, or Dock Fill controls on the form. But it is an MdiParent, so I guess it has an MdiClient which is filling it.
Svish
2009-03-13 12:42:12