Share via


SqlStudioMessageBox.Show Method (IWin32Window, String, MessageBoxButtons)

Displays a message box in front of the specified object and with specified text and buttons.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Shared Function Show ( _
    owner As IWin32Window, _
    text As String, _
    buttons As MessageBoxButtons _
) As DialogResult
'Usage
Dim owner As IWin32Window
Dim text As String
Dim buttons As MessageBoxButtons
Dim returnValue As DialogResult

returnValue = SqlStudioMessageBox.Show(owner, text, _
    buttons)
public static DialogResult Show(
    IWin32Window owner,
    string text,
    MessageBoxButtons buttons
)
public:
static DialogResult Show(
    IWin32Window^ owner, 
    String^ text, 
    MessageBoxButtons buttons
)
static member Show : 
        owner:IWin32Window * 
        text:string * 
        buttons:MessageBoxButtons -> DialogResult 
public static function Show(
    owner : IWin32Window, 
    text : String, 
    buttons : MessageBoxButtons
) : DialogResult

Parameters

  • text
    Type: System.String
    The text to display in the message box.

Return Value

Type: System.Windows.Forms.DialogResult
One of the DialogResult values.