ToolStripComboBox::FlatStyle Property
.NET Framework (current version)
Gets or sets the appearance of the ToolStripComboBox.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: