# DatabaseConnectionDialog Class

> The DatabaseConnectionDialog class allows the user to build connection strings and to connect to specific data sources. The DatabaseConnectionDialog is a modal dialog box which must be shown with the DatabaseConnectionDialog.ShowDialog method.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.Windows.Forms.Form` › `TXTextControl.DocumentServer.Windows.Forms.HighDpiForm`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > DatabaseConnectionDialog Class
- **604 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/llms-full.txt

---

### Description

The DatabaseConnectionDialog class allows the user to build connection strings and to connect to specific data sources. The DatabaseConnectionDialog is a modal dialog box which must be shown with the `DatabaseConnectionDialog.ShowDialog` method.

### Syntax

```csharp
public class DatabaseConnectionDialog : HighDpiForm
```

```vbnet
Public Class DatabaseConnectionDialog
    Inherits HighDpiForm
```

### 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
```

---

## In This Section

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

---

## Nearby

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