Method Show
Show(string?, string?, MessageBoxButtons, MessageBoxDefaultButton, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxDefaultButton defaultButton, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, bool, MessageBoxResultDelegate?)
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, bool displayHelpButton, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
displayHelpButton
booltrue to show the Help button; otherwise, false. The default is false.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, MessageBoxResultDelegate?)
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, MessageBoxResultDelegate?)
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
public static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, string, MessageBoxResultDelegate?)
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 static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
keyword
stringThe Help keyword to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, string, MessageBoxResultDelegate?)
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 static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
keyword
stringThe Help keyword to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, MessageBoxResultDelegate?)
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 static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
navigator
HelpNavigatorOne of the HelpNavigator values.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, MessageBoxResultDelegate?)
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 static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
navigator
HelpNavigatorOne of the HelpNavigator values.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, object, MessageBoxResultDelegate?)
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 static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
navigator
HelpNavigatorOne of the HelpNavigator values.
param
objectThe numeric ID of the Help topic to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, object, MessageBoxResultDelegate?)
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 static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
helpFilePath
stringThe path and name of the Help file to display when the user clicks the Help button.
navigator
HelpNavigatorOne of the HelpNavigator values.
param
objectThe numeric ID of the Help topic to display when the user clicks the Help button.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, MessageBoxResultDelegate?)
Displays a message box with the specified text, caption, buttons, icon, default button, and options.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxResultDelegate?)
Displays a message box with the specified text, caption, buttons, icon, and default button.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxResultDelegate?)
Displays a message box with specified text, caption, buttons, and icon.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxButtons, MessageBoxResultDelegate?)
Displays a message box with specified text, caption, and buttons.
public static void Show(string? text, string? caption, MessageBoxButtons buttons, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, string?, MessageBoxResultDelegate?)
Displays a message box with specified text and caption.
public static void Show(string? text, string? caption, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(string?, MessageBoxResultDelegate?)
Displays a message box with specified text.
public static void Show(string? text, MessageBoxResultDelegate? onClose = null)
Parameters
text
stringThe text to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.
public static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values the specifies the default button for the message box.
options
MessageBoxOptionsOne of the MessageBoxOptions values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.
public static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
MessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon.
public static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxButtons, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text, caption, and buttons.
public static void Show(Window? owner, string? text, string? caption, MessageBoxButtons buttons, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, string?, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text and caption.
public static void Show(Window? owner, string? text, string? caption, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
caption
stringThe text to display in the title bar of the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(Window?, string?, MessageBoxResultDelegate?)
Displays a message box in front of the specified object and with the specified text.
public static void Show(Window? owner, string? text, MessageBoxResultDelegate? onClose = null)
Parameters
owner
WindowA Window that will own the modal dialog box.
text
stringThe text to display in the message box.
onClose
MessageBoxResultDelegateThe action which is called when dialog is closed.
Show(MessageBoxInfo)
Shows message box using the specified parameters.
public static void Show(MessageBoxInfo info)
Parameters
info
MessageBoxInfoMessage box parameters.
Exceptions
- NotImplementedException
If requested feature is not supported.