System.Windows.Forms.DrawToolTipEventHandler Delegate

Represents the method that will handle the ToolTip.Draw event of a System.Windows.Forms.ToolTip.

Syntax

public delegate void DrawToolTipEventHandler (object sender, DrawToolTipEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

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. 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.

When you create a System.Windows.Forms.DrawToolTipEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [<topic://cpconEventsDelegates>].

Requirements

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