SqlStudioMessageBox.Show Method (IWin32Window, String, MessageBoxIcon)
Displays a message box in front of the specified object with specified text and icon.
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, _
icon As MessageBoxIcon _
) As DialogResult
'Usage
Dim owner As IWin32Window
Dim text As String
Dim icon As MessageBoxIcon
Dim returnValue As DialogResult
returnValue = SqlStudioMessageBox.Show(owner, text, _
icon)
public static DialogResult Show(
IWin32Window owner,
string text,
MessageBoxIcon icon
)
public:
static DialogResult Show(
IWin32Window^ owner,
String^ text,
MessageBoxIcon icon
)
static member Show :
owner:IWin32Window *
text:string *
icon:MessageBoxIcon -> DialogResult
public static function Show(
owner : IWin32Window,
text : String,
icon : MessageBoxIcon
) : DialogResult
Parameters
- owner
Type: System.Windows.Forms.IWin32Window
An implementation of IWin32Window that owns the modal dialog box.
- text
Type: System.String
The text to display in the message box.
- icon
Type: System.Windows.Forms.MessageBoxIcon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
Return Value
Type: System.Windows.Forms.DialogResult
One of the DialogResult values.