DriveListBox.Items[] Property

Definition

Gets the items that are contained in a DriveListBox.

Overloads

Items

Gets the items that are contained in a DriveListBox.

Items[Int32]

Gets the item for a specified index in a DriveListBox.

Items

Gets the items that are contained in a DriveListBox.

C#
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ComboBox.ObjectCollection Items { get; }

Property Value

A ListBox.ObjectCollection that represents the items in the DirListBox.

Attributes

Remarks

Use this property to retrieve a list of drives that are currently displayed in a 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.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Items[Int32]

Gets the item for a specified index in a DriveListBox.

C#
[System.ComponentModel.Browsable(false)]
public string Items[int Index] { get; }

Parameters

Index
Int32

The number of a specific item in the list.

Property Value

A String that contains the name of the drive at the specified Index.

Attributes

Remarks

Use this property to retrieve the name of a drive in a 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.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1