System.Windows.Forms.ToolStripRenderer.DrawGrip Method

Draws a move handle on a System.Windows.Forms.ToolStrip.

Syntax

public void DrawGrip (ToolStripGripRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripGripRenderEventArgs that contains the data to draw the move handle.

Remarks

The ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) method provides an entry point to the rendering code for a move handle located on a System.Windows.Forms.ToolStrip. Use this method when overriding the ToolStrip.OnPaintGrip(PaintEventArgs) method, or to force a move handle to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way a move handle is rendered, override the ToolStripRenderer.OnRenderGrip(ToolStripGripRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.

Requirements

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