System.Windows.Forms.ToolStripRenderer.DrawOverflowButtonBackground Method

Draws the background for an overflow button.

Syntax

public void DrawOverflowButtonBackground (ToolStripItemRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripItemRenderEventArgs that contains the event data.

Remarks

The ToolStripRenderer.DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) method provides the entry point to the rendering code for the background of an overflow button. Use this method to draw the background of an overflow button when overriding the ToolStripItem.OnPaint(PaintEventArgs) method, or to force the background for an overflow button to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way the background for an overflow button is rendered, override the ToolStripRenderer.OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs) 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