Show(Control,String,String,MessageBoxButtons,Boolean) Method
Displays a message box in front of the specified object and with the specified text, caption, and buttons.
Syntax
Parameters
- owner
- The System.Windows.Forms.IWin32Window the message box will display in front of.
- 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.
- logOutput
- (Optional) Output to IMessageEx.
Return Value
One of the System.Windows.Forms.DialogResult values.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also