Expand Minimize

MessageBox.Show Method

Displays a message box.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Show(String) Displays a message box with specified text.
Public method Static member Show(IWin32Window, String) Displays a message box in front of the specified object and with the specified text.
Public method Static member Show(String, String) Displays a message box with specified text and caption.
Public method Static member Show(IWin32Window, String, String) Displays a message box in front of the specified object and with the specified text and caption.
Public method Static member Show(String, String, MessageBoxButtons) Displays a message box with specified text, caption, and buttons.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons) Displays a message box in front of the specified object and with the specified text, caption, and buttons.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon) Displays a message box with specified text, caption, buttons, and icon.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon) Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the specified text, caption, buttons, icon, and default button.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) Displays a message box with the specified text, caption, buttons, icon, default button, and options.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions) Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, Boolean) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, String) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and Help keyword.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, String) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and Help keyword.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.
Public method Static member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator, Object) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file, HelpNavigator, and Help topic.
Public method Static member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, String, HelpNavigator, Object) Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file, HelpNavigator, and Help topic.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft