System.Windows.Forms.ComboBoxRenderer.DrawDropDownButton Method

Draws a drop-down arrow with the current visual style of the operating system.

Syntax

public static void DrawDropDownButton (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.ComboBoxState state)

Parameters

g
The System.Drawing.Graphics used to draw the drop-down arrow.
bounds
The System.Drawing.Rectangle that specifies the bounds of the drop-down arrow.
state
One of the System.Windows.Forms.VisualStyles.ComboBoxState values that specifies the visual state of the drop-down arrow.

Remarks

Before calling this method, you should verify that the ComboBoxRenderer.IsSupported property returns true.

Requirements

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