SqlStudioMessageBox.Show Method (String, MessageBoxButtons)
Displays a message box with the 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 ( _
text As String, _
buttons As MessageBoxButtons _
) As DialogResult
'Usage
Dim text As String
Dim buttons As MessageBoxButtons
Dim returnValue As DialogResult
returnValue = SqlStudioMessageBox.Show(text, buttons)
public static DialogResult Show(
string text,
MessageBoxButtons buttons
)
public:
static DialogResult Show(
String^ text,
MessageBoxButtons buttons
)
static member Show :
text:string *
buttons:MessageBoxButtons -> DialogResult
public static function Show(
text : String,
buttons : MessageBoxButtons
) : DialogResult
Parameters
- text
Type: System.String
The text to display in the message box.
- buttons
Type: System.Windows.Forms.MessageBoxButtons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
Return Value
Type: System.Windows.Forms.DialogResult
One of the DialogResult values.