Redigeeri

Jagamisviis:


DriveListBox.DropDownStyle Property

Definition

Gets or sets a value that specifies the style of a DriveListBox combo box.

public:
 property System::Windows::Forms::ComboBoxStyle DropDownStyle { System::Windows::Forms::ComboBoxStyle get(); void set(System::Windows::Forms::ComboBoxStyle value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ComboBoxStyle DropDownStyle { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.DropDownStyle : System.Windows.Forms.ComboBoxStyle with get, set
Public Property DropDownStyle As ComboBoxStyle

Property Value

One of the ComboBoxStyle values. The default is DropDown.

Attributes

Remarks

The DropDownStyle property controls the interface that is presented to the user. You can enter a value that provides a simple drop-down list box, where the list always appears, a drop-down list box, where the text portion is not editable and you must select an arrow to view the drop-down, or the default drop-down list box, where the text portion is editable and the user must press the arrow key to view the list. To always display a list that the user cannot edit, use a ListBox control.

If you set the DropDownStyle property to DropDownList, you can select only valid values from the list. If you set the DropDownStyle property to DropDown, you can type any value in the editable area of the DriveListBox.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to

See also