> For the complete documentation index, see [llms.txt](https://web-api.iceteagroup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web-api.iceteagroup.com/ppj.web.vis.49/controls/ppj.runtime.vis.visdrivelistbox.md).

# VisDriveListBox

Namespace: **PPJ.Runtime.Vis**

Assembly: **PPJ.Web.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

### ![](/files/qoQXnPICsjBVNBSqpOj9)VisDriveListBox()

Default Constructor.

## Methods

### ![](/files/jDiecrwjcc5yZsrGcmX2)FromHandle(hWnd)

Returns the control associated with the handle.

| Parameter | Type                                                                                                 | Description |
| --------- | ---------------------------------------------------------------------------------------------------- | ----------- |
| **hWnd**  | [SalWindowHandle](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salwindowhandle.md) |             |

**Returns:** [VisDriveListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdrivelistbox.md).

### ![](/files/qoQXnPICsjBVNBSqpOj9)GetDrive(nIndex)

Returns the name of the drive at the specified index.

| Parameter  | Type                                                                                     | Description |
| ---------- | ---------------------------------------------------------------------------------------- | ----------- |
| **nIndex** | [SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md) |             |

**Returns:** [SalString](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salstring.md).

### ![](/files/qoQXnPICsjBVNBSqpOj9)GetDriveType(nIndex)

Returns the type of the drive at the specified index.

| Parameter  | Type                                                                                     | Description |
| ---------- | ---------------------------------------------------------------------------------------- | ----------- |
| **nIndex** | [SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md) |             |

**Returns:** [SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md).

### ![](/files/qoQXnPICsjBVNBSqpOj9)GetSelectedDrive()

Returns the name of the currently selected drive.

**Returns:** [SalString](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salstring.md).

### ![](/files/qoQXnPICsjBVNBSqpOj9)Populate()

Populates the list.

**Returns:** [SalNumber](https://docs.wisej.com/extensions/ppj.web.49/types/ppj.runtime.salnumber.md).

## Implements

| Name                                                                                                              | Description |
| ----------------------------------------------------------------------------------------------------------------- | ----------- |
| [ISalControl](https://docs.wisej.com/extensions/ppj.web.49/interfaces/ppj.runtime.windows.isalcontrol.md)         |             |
| [ISalListControl](https://docs.wisej.com/extensions/ppj.web.49/interfaces/ppj.runtime.windows.isallistcontrol.md) |             |
| [ISalWindow](https://docs.wisej.com/extensions/ppj.web.49/interfaces/ppj.runtime.windows.isalwindow.md)           |             |
