ConnectionDialog Class

Definition

Contains methods that are used to define the behavior of the connection dialog box in SQL Server. The connection dialog box is used to connect to instances of SQL Server in tools such as SQL Server Management Studio and SQL Server Profiler.

public ref class ConnectionDialog : System::Windows::Forms::Form
public class ConnectionDialog : System.Windows.Forms.Form
type ConnectionDialog = class
    inherit Form
Public Class ConnectionDialog
Inherits Form
Inheritance
ConnectionDialog

Constructors

ConnectionDialog()

Initializes a new instance of the ConnectionDialog class.

Fields

doneOneTimeInit

Tracks whether it is the first time that the connection dialog box becomes visible.

Properties

ApplicationName

Gets or sets the application name associated with the connection dialog box.

AvailableServers

Retrieves the servers that are available for the connection dialog box.

ConnectionVerifier

Gets or sets the invoker of the dialog box that specifies a delegate to be used to verify the connection.

FirewallRuleDetectionEnabled
ImportRegisteredServersOnFirstLaunch

A Boolean value that determines whether to import the list of registered servers the first time that the connection dialog box is opened.

ServerNameSetOnLaunch

Gets or sets a value that indicates whether server name is set to launch mode.

Methods

AddServer(IServerType)

Adds a server to the connection dialog box.

DisableOptionsButton()

Disables the option button in the connection dialog.

Dispose(Boolean)

Releases the unmanaged resources used by the ConnectionDialog and optionally releases the managed resources.

EnableDisableServerInstanceControl(Boolean)

Enables or disables the server instance control of an object.

FixServerName()

Fixes the server name in the connection dialog.

OnClosed(EventArgs)

Raises the OnClosed(EventArgs) event.

OnClosing(CancelEventArgs)

Raises the Closing event.

OnHelpRequested(HelpEventArgs)

Raises the OnHelpRequested(HelpEventArgs) event.

OnLoad(EventArgs)

Raises the Load event.

OnVisibleChanged(EventArgs)

Raises an event if a control changes visibility.

ProcessKeyPreview(Message)

Shows a message that has been processed.

SetApplicationTitle(String)

Sets the application title for the connection dialog box.

SetConnectButtonText(String)

Used to set the text to use instead of "Connect" for the Connect button.

SetShowRememberPassword(Boolean)

Sets a value indicating whether the dialog box remembers displaying the password.

ShowDialogCollectValues(IWin32Window, UIConnectionInfo)

Shows a dialog to collect the values for the connection.

ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection)

Used to collect the connection information and to validate it by establishing a live connection.

TryToConnect(IWin32Window, UIConnectionInfo, IDbConnection)

Opens the connection using a given connection info without showing any UI.

Applies to