# VisDirTreeListBox

Namespace: **PPJ.Runtime.Vis**

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

Displays directory tree outline in a list box.

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

```csharp
public class VisDirTreeListBox : VisOutlineListBox
```

{% endtab %}

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

```visual-basic
Public Class VisDirTreeListBox
    Inherits VisOutlineListBox
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](/files/dBIrS7XBDGmrzmTRbSI6)VisDirTreeListBox()

Default Constructor.

## Methods

### ![](/files/69uzLyEV3ANF4GK6pznb)FromHandle(handle)

Returns the control associated with the handle.

| Parameter  | Type                                                                                 | Description |
| ---------- | ------------------------------------------------------------------------------------ | ----------- |
| **handle** | [SalWindowHandle](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md) |             |

**Returns:** [VisDirTreeListBox](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md).

### ![](/files/dBIrS7XBDGmrzmTRbSI6)GetSelectedDir()

Returns the full path of the selected directory.

**Returns:** [SalString](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md).

### ![](/files/dBIrS7XBDGmrzmTRbSI6)Populate(sDir)

Populates the tree control with the sub-directories in the specified folder.

| Parameter | Type                                                                           | Description |
| --------- | ------------------------------------------------------------------------------ | ----------- |
| **sDir**  | [SalString](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md) |             |

**Returns:** [SalBoolean](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md).

## Implements

| Name                                                                                 | Description |
| ------------------------------------------------------------------------------------ | ----------- |
| [ISalControl](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md)     |             |
| [ISalListControl](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md) |             |
| [ISalWindow](/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md)      |             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://desktop-api.iceteagroup.com/ppj.runtime.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
