Raises the OnPaint event.
[Visual Basic] Overrides Protected Sub OnPaintBackground( _ ByVal e As PaintEventArgs _ ) [C#] protected override void OnPaintBackground( PaintEventArgs e ); [C++] protected: override void OnPaintBackground( PaintEventArgs* e ); [JScript] protected override function OnPaintBackground( e : PaintEventArgs );
Raising an event invokes the event-handling method through a delegate. For more information, see TBD.
Notes to Inheritors: When overriding OnPaintBackground in a derived class, be sure to call the base class's OnPaintBackground method.
Label Class | Label Members | System.WinForms Namespace | OnPaintBackground | OnPaint | PaintEventArgs