T
Tom P.
I am trying to take over the painting of a windows form but I can't
seems to override the OnPaint method... or the OnPaintBackground
method... or even the OnNotifyMessage method if there is a control
covering the client area. None of these are getting called in any way.
I've tried using SetStyle(ControlStyles.AllPaintingInWmPaint, true);
and SetStyle(ControlStyles.UserPaint, true); but nothing works. If
there is no client area the OnPaint is never getting called. Is there
a different method for painting the actual Form? How do I repaint the
titlebar and menus and everything?
How do I actually override the entire OnPaint method for the form?
Tom P.
seems to override the OnPaint method... or the OnPaintBackground
method... or even the OnNotifyMessage method if there is a control
covering the client area. None of these are getting called in any way.
I've tried using SetStyle(ControlStyles.AllPaintingInWmPaint, true);
and SetStyle(ControlStyles.UserPaint, true); but nothing works. If
there is no client area the OnPaint is never getting called. Is there
a different method for painting the actual Form? How do I repaint the
titlebar and menus and everything?
How do I actually override the entire OnPaint method for the form?
Tom P.