Show(String,String,MessageBoxButtons,MessageBoxIcon,MessageBoxDefaultButton,Boolean) Method
Displays a message box with the specified text, caption, buttons, icon, and default button.
Syntax
public static DialogResult Show( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, bool logOutput )
public: static DialogResult Show( String^ text, String^ caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, bool logOutput )
Parameters
- 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.
- defaultButton
- One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for 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