NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichControl.OnPaintBackground

Inheriting classes should override this method to handle the erase background request from windows. It is not necessary to call base.onPaintBackground, however if you do not want the default Windows behavior you must set event.handled to true.

[Visual Basic]
Overridable Protected Sub OnPaintBackground( _
   ByVal pevent As PaintEventArgs _
)
[C#]
protected virtual void OnPaintBackground(
   PaintEventArgs pevent
);
[C++]
protected: virtual void OnPaintBackground(
   PaintEventArgs* pevent
);
[JScript]
protected function OnPaintBackground(
   pevent : PaintEventArgs
);

Parameters

pevent
Event data

See Also

RichControl Class | RichControl Members | System.WinForms Namespace