Share via


DataConnectionPromptDialog.OnFormClosing Method

Handles specific actions that occur when the dialog box is closed, such as saving properties from the dialog box controls, saving the new connection string, and opening the connection if the OK button of the dialog box is clicked.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Overrides Sub OnFormClosing ( _
    e As FormClosingEventArgs _
)
protected override void OnFormClosing(
    FormClosingEventArgs e
)
protected:
virtual void OnFormClosing(
    FormClosingEventArgs^ e
) override
abstract OnFormClosing : 
        e:FormClosingEventArgs -> unit 
override OnFormClosing : 
        e:FormClosingEventArgs -> unit 
protected override function OnFormClosing(
    e : FormClosingEventArgs
)

Parameters

Remarks

The base class implementation calls the SaveProperties method and then tries to open the connection by using the stored IVsDataConnectionSupport object. If this fails, it shows a message box and returns the user to the prompt dialog box.

.NET Framework Security

See Also

Reference

DataConnectionPromptDialog Class

Microsoft.VisualStudio.Data.Framework Namespace