KryptonMessageBoxShow Method (String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) |
Displays a message box with the specified text, caption, buttons, icon, and default button.
Namespace:
Internal.ComponentFactory.Krypton.Toolkit
Assembly:
NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax public static DialogResult Show(
string text,
string caption,
MessageBoxButtons buttons,
MessageBoxIcon icon,
MessageBoxDefaultButton defaultButton
)
Parameters
- text
- Type: SystemString
The text to display in the message box. - caption
- Type: SystemString
The text to display in the title bar of the message box. - buttons
- Type: System.Windows.FormsMessageBoxButtons
One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box. - icon
- Type: System.Windows.FormsMessageBoxIcon
One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box. - defaultButton
- Type: System.Windows.FormsMessageBoxDefaultButton
One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
Return Value
Type:
DialogResultOne of the System.Windows.Forms.DialogResult values.
See Also