# FileDialogUI

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

* [Control](https://docs.wisej.com/api/wisej.web/general/control)
  * [ScrollableControl](https://docs.wisej.com/api/wisej.web/containers/scrollablecontrol)
    * [ContainerControl](https://docs.wisej.com/api/wisej.web/containers/containercontrol)
      * [Form](https://docs.wisej.com/api/wisej.web/containers/form)
        * [FileDialogUI](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialogui)

UI implementation for the FileDialog class.

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

```csharp
public class FileDialogUI : Form
```

{% endtab %}

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

```visual-basic
Public Class FileDialogUI
    Inherits Form
```

{% endtab %}
{% endtabs %}

## Constructors

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

Initializes a new instance of [FileDialogUI](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialogui).

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

Initializes a new instance of [FileDialogUI](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialogui).

| Name           | Type                                                                                   | Description |
| -------------- | -------------------------------------------------------------------------------------- | ----------- |
| **fileDialog** | [FileDialog](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialog) |             |

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) Dispose(disposing)

Clean up any resources being used.

| Parameter     | Type                                                            | Description                                                     |
| ------------- | --------------------------------------------------------------- | --------------------------------------------------------------- |
| **disposing** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true if managed resources should be disposed; otherwise, false. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) GetDirectories(root, path)

Returns the directories in the specified *path* within the *root* file system.

| Parameter | Type                                                                                                | Description                                                                                                                                   |
| --------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **root**  | [IFileSystemProvider](https://docs.wisej.com/api/wisej.core/general/wisej.core.ifilesystemprovider) | The [IFileSystemProvider](https://docs.wisej.com/api/wisej.core/general/wisej.core.ifilesystemprovider) that represents the root file system. |
| **path**  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                       | Full path containing the directories to enumerate.                                                                                            |

**Returns:** [String\[\]](https://docs.microsoft.com/dotnet/api/system.string). A string array with the path of the directories.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) GetFileIcon(path)

Returns the a [Image](https://docs.microsoft.com/dotnet/api/system.drawing.image) or a [String](https://docs.microsoft.com/dotnet/api/system.string) that corresponds to the icon of the file specified in *path* .

| Parameter | Type                                                          | Description                                          |
| --------- | ------------------------------------------------------------- | ---------------------------------------------------- |
| **path**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The path of the file for which to retrieve the icon. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). An [Image](https://docs.microsoft.com/dotnet/api/system.drawing.image) or a [String](https://docs.microsoft.com/dotnet/api/system.string) representing the file's icon.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) GetFiles(root, path, pattern)

Returns the list of files in the *path* that match the *pattern* within the specified *root* file system.

| Parameter   | Type                                                                                                | Description                                                                                                                      |
| ----------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **root**    | [IFileSystemProvider](https://docs.wisej.com/api/wisej.core/general/wisej.core.ifilesystemprovider) | The [IFileSystemProvider](https://docs.wisej.com/api/wisej.core/general/wisej.core.ifilesystemprovider) that contains the files. |
| **path**    | [String](https://docs.microsoft.com/dotnet/api/system.string)                                       | Path where the files are located.                                                                                                |
| **pattern** | [String](https://docs.microsoft.com/dotnet/api/system.string)                                       | Wildcard pattern to qualify the files to return.                                                                                 |

**Returns:** [String\[\]](https://docs.microsoft.com/dotnet/api/system.string). A string array with the full path of the files that qualify the specified criteria.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnFormClosed(e)

| Parameter | Type                                                                                                      | Description |
| --------- | --------------------------------------------------------------------------------------------------------- | ----------- |
| **e**     | [FormClosedEventArgs](https://docs.wisej.com/api/wisej.web/containers/form/wisej.web.formclosedeventargs) |             |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnLoad(e)

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) |             |

## Implements

| Name                                                                                                 | Description                                                                                                                              |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [IUserData](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iuserdata)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface.                          |
| [IBindableComponent](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                            |
| [IContainerControl](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icontainercontrol)     | Provides the functionality for a control to act as a parent for other controls.                                                          |
| [IDropTarget](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.idroptarget)                 | Controls that support drag & drop operations implement this interface.                                                                   |
| [IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                           |
| [IWisejControl](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/wisej.web/general/control) class must implement this interface. |
| [IWisejWindow](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejwindow)             | All wisej top-level windows implement this interface.                                                                                    |
| [IWisejSerializable](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                    |
