System.Windows.Forms.ToolTip.Draw Event

Occurs when the ToolTip is drawn and the ToolTip.OwnerDraw property is set to true and the ToolTip.IsBalloon property is false.

Syntax

public event DrawToolTipEventHandler Draw

Remarks

With the ToolTip.Draw event, you can customize the appearance of the System.Windows.Forms.ToolTip.

The ToolTip.Draw event is raised by the System.Windows.Forms.ToolTip class when the System.Windows.Forms.ToolTip is drawn and the ToolTip.OwnerDraw property value is true and the ToolTip.IsBalloon property is false. The System.Windows.Forms.DrawToolTipEventArgs class contains all the information needed to paint the System.Windows.Forms.ToolTip, including the ToolTip text, the System.Drawing.Rectangle, and the System.Drawing.Graphics object on which the drawing should be done. To customize the look of the ToolTip, use the System.Drawing.Rectangle to determine the bounds of the ToolTip, and the System.Drawing.Graphics object to perform your customized drawing. You can increase the bounds of the System.Windows.Forms.ToolTip before it is shown by handling the ToolTip.Popup event.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0