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 );
RichControl Class | RichControl Members | System.WinForms Namespace