ToolStripRenderer.DrawToolStripBorder Method (ToolStripRenderEventArgs)


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

Draws the border for a ToolStrip.

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

public void DrawToolStripBorder(
	ToolStripRenderEventArgs e


Type: System.Windows.Forms.ToolStripRenderEventArgs

A ToolStripRenderEventArgs that contains the data to draw the border for the ToolStrip.

The DrawToolStripBorder method provides the entry point to the rendering code for the border of a ToolStrip. Use this method to draw the border of a ToolStrip when overriding the ToolStrip.OnPaint method, or to force the border of a ToolStrip to be drawn in a custom ToolStripRenderer. To change the way the border of a ToolStrip is rendered, override the OnRenderToolStripBorder method in a class derived from ToolStripRenderer.

.NET Framework
Available since 2.0
Return to top