ToolStrip::OnPaintBackground Method (PaintEventArgs^)
.NET Framework (current version)
Namespace:
System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return to top
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- e
-
Type:
System.Windows.Forms::PaintEventArgs^
A PaintEventArgs that contains information about the control to paint.
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.
The OnPaintBackground method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors:
Inheriting classes should override this method to handle the Windows request to erase the background.
.NET Framework
Available since 2.0
Available since 2.0
Show: