System.Windows.Forms.ToolStripRenderer.DrawDropDownButtonBackground Method

Draws the background for a System.Windows.Forms.ToolStripDropDownButton.

Syntax

public void DrawDropDownButtonBackground (ToolStripItemRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripItemRenderEventArgs that contains the data to draw the drop-down button's background.

Remarks

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