ToolStripRenderer.DrawGrip Method (ToolStripGripRenderEventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Draws a move handle on a ToolStrip.

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

public void DrawGrip(
	ToolStripGripRenderEventArgs e


Type: System.Windows.Forms.ToolStripGripRenderEventArgs

A ToolStripGripRenderEventArgs that contains the data to draw the move handle.

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

.NET Framework
Available since 2.0
Return to top