# VisDriveListBox

Namespace: **PPJ.Runtime.Vis**

Assembly: **PPJ.Runtime.Vis.49** (4.9.0.0)

Extended ListBox, displays list of available drives.

{% tabs %}
{% tab title="C#" %}

```csharp
public class VisDriveListBox : VisListBoxBase
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class VisDriveListBox
    Inherits VisListBoxBase
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)VisDriveListBox()

Default Constructor.

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media)FromHandle(handle)

Returns the control associated with the handle.

| Parameter  | Type                                                                                                               | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------------ | ----------- |
| **handle** | [SalWindowHandle](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox) |             |

**Returns:** [VisDriveListBox](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetDrive(nIndex)

Returns the name of the drive at the specified index.

| Parameter  | Type                                                                                                         | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **nIndex** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox) |             |

**Returns:** [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetDriveType(nIndex)

Returns the type of the drive at the specified index.

| Parameter  | Type                                                                                                         | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **nIndex** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetSelectedDrive()

Returns the name of the currently selected drive.

**Returns:** [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Populate()

Populates the list.

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox).

## Implements

| Name                                                                                                               | Description |
| ------------------------------------------------------------------------------------------------------------------ | ----------- |
| [ISalControl](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox)     |             |
| [ISalListControl](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox) |             |
| [ISalWindow](https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdrivelistbox)      |             |
