Skip to main content
.NET Framework Class Library
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.

Overload List
 NameDescription
Public methodStatic memberShow(String)Displays a message box with specified text.
Public methodStatic memberShow(IWin32Window, String)Displays a message box in front of the specified object and with the specified text.
Public methodStatic memberShow(String, String)Displays a message box with specified text and caption.
Public methodStatic memberShow(IWin32Window, String, String)Displays a message box in front of the specified object and with the specified text and caption.
Public methodStatic memberShow(String, String, MessageBoxButtons)Displays a message box with specified text, caption, and buttons.
Public methodStatic memberShow(IWin32Window, String, String, MessageBoxButtons)Displays a message box in front of the specified object and with the specified text, caption, and buttons.
Public methodStatic memberShow(String, String, MessageBoxButtons, MessageBoxIcon)Displays a message box with specified text, caption, buttons, and icon.
Public methodStatic memberShow(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 methodStatic memberShow(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton)Displays a message box with the specified text, caption, buttons, icon, and default button.
Public methodStatic memberShow(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 methodStatic memberShow(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions)Displays a message box with the specified text, caption, buttons, icon, default button, and options.
Public methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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 methodStatic memberShow(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