# DatabaseConnectionDialog Constructor

> Creates a DatabaseConnectionDialog object for the specified DocumentServer.DataSources.DataSourceManager.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > DatabaseConnectionDialog Constructor
- **515 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/constructor/llms-full.txt

---

### Description

Creates a DatabaseConnectionDialog object for the specified [DocumentServer.DataSources.DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt).

### Syntax

```csharp
public DatabaseConnectionDialog(DataSourceManager dataSourceManager);
```

```vbnet
Public Sub New(dataSourceManager As DataSourceManager)
```

### Parameters

| Parameter | Description |
|---|---|
| dataSourceManager | Specifies the [DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt), which handles the selected connection to a data source. |

### Examples

The following example creates a Database Connection Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using TXTextControl.DocumentServer.Windows.Forms.DatabaseConnectionDialog databaseConnectionDialog = new(new TXTextControl.DocumentServer.DataSources.DataSourceManager());
databaseConnectionDialog.AllowTransparency = true;
```

```vbnet
Dim databaseConnectionDialog As New TXTextControl.DocumentServer.Windows.Forms.DatabaseConnectionDialog(New TXTextControl.DocumentServer.DataSources.DataSourceManager())
databaseConnectionDialog.AllowTransparency = True
```

---

## Nearby

- **Previous:** [DatabaseConnectionDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/llms-full.txt)
- **Next:** [DataSourceExtractionDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/llms-full.txt)
