TX Text Control .NET for Windows Forms

DatabaseConnectionDialog Class

Class|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.Windows.Forms.dll from the setup.
Inherits
  1. Form
  2. HighDpiForm
  3. DatabaseConnectionDialog

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

public class DatabaseConnectionDialog : HighDpiForm

Examples

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

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

Members

Constructors

ConstructorDescription
DatabaseConnectionDialogCreates a DatabaseConnectionDialog object for the specified DocumentServer.DataSources.DataSourceManager.

Methods

MethodDescription
ShowNot described in the reference. public void Show(IWin32Window owner);
ShowDialogNot described in the reference. public System.Windows.Forms.DialogResult ShowDialog();