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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
displayHelpButtonbooltrue to show the Help button; otherwise, false. The default is false.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
keywordstringThe Help keyword to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
keywordstringThe Help keyword to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
navigatorHelpNavigatorOne of the HelpNavigator values.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
navigatorHelpNavigatorOne of the HelpNavigator values.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
navigatorHelpNavigatorOne of the HelpNavigator values.
paramobjectThe numeric ID of the Help topic to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
helpFilePathstringThe path and name of the Help file to display when the user clicks the Help button.
navigatorHelpNavigatorOne of the HelpNavigator values.
paramobjectThe numeric ID of the Help topic to display when the user clicks the Help button.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
onCloseMessageBoxResultDelegateThe 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
textstringThe text to display in the message box.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values the specifies the default button for the message box.
optionsMessageBoxOptionsOne 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.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButtonMessageBoxDefaultButtonOne of the MessageBoxDefaultButton values that specifies the default button for the message box.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
iconMessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
buttonsMessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
captionstringThe text to display in the title bar of the message box.
onCloseMessageBoxResultDelegateThe 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
ownerWindowA Window that will own the modal dialog box.
textstringThe text to display in the message box.
onCloseMessageBoxResultDelegateThe action which is called when dialog is closed.
Show(MessageBoxInfo)
Shows message box using the specified parameters.
public static void Show(MessageBoxInfo info)
Parameters
infoMessageBoxInfoMessage box parameters.
Exceptions
- NotImplementedException
If requested feature is not supported.