Shows the dialog window.
'Declaration
Function Show( _
ByVal As System.Windows.Forms.IWin32Window, _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.Windows.Forms.MessageBoxButtons, _
ByVal As System.Windows.Forms.MessageBoxIcon _
) As System.Windows.Forms.DialogResult
System.Windows.Forms.DialogResult Show(
System.Windows.Forms.IWin32Window ,
System.string ,
System.string ,
System.Windows.Forms.MessageBoxButtons ,
System.Windows.Forms.MessageBoxIcon
)
Parameters
- owner
- Any object that implements System.Windows.Forms.IWin32Window that represents the top-level window that will own the modal dialog box.
- text
- The text to display in the message box.
- caption
- The text to display in the title bar of the message box.
- buttons
- One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
- icon
- One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
Return Value
One of the System.Windows.Forms.DialogResult values.