ToolStripComboBox::FlatStyle Property

 

Gets or sets the appearance of the ToolStripComboBox.

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

public:
property FlatStyle FlatStyle {
	FlatStyle get();
	void set(FlatStyle value);
}

Property Value

Type: System.Windows.Forms::FlatStyle

One of the values of FlatStyle. The options are Flat, Popup, Standard, and System. The default is Popup.

Use the FlatStyle property to get or set the display style of the ToolStripComboBox.

Starting with the .NET Framework 4.5.2, if the FlatStyle property is set to Flat or Popup, the drop-down arrow may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:

<appSettings>
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>

The following code example demonstrates the syntax for setting various ToolStripComboBox properties, including the FlatStyle property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: