C# Class ComponentFactory.Krypton.Toolkit.KryptonMessageBox

Inheritance: KryptonForm
ファイルを表示 Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
Show ( IWin32Window owner, string text ) : DialogResult

Displays a message box in front of the specified object and with the specified text.

Show ( IWin32Window owner, string text, string caption ) : DialogResult

Displays a message box in front of the specified object and with the specified text and caption.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons ) : DialogResult

Displays a message box in front of the specified object and with the specified text, caption, and buttons.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult

Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options ) : DialogResult

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param ) : DialogResult

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.

Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword ) : DialogResult

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.

Show ( string text ) : DialogResult

Displays a message box with specified text.

Show ( string text, string caption ) : DialogResult

Displays a message box with specified text and caption.

Show ( string text, string caption, MessageBoxButtons buttons ) : DialogResult

Displays a message box with specified text, caption, and buttons.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult

Displays a message box with specified text, caption, buttons, and icon.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, and default button.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, and options.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, bool displayHelpButton ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator ) : DialogResult

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param ) : DialogResult

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.

Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword ) : DialogResult

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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void
InternalShow ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, System.Windows.Forms.HelpInfo helpInfo ) : DialogResult
KryptonMessageBox ( ) : System
KryptonMessageBox ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, System.Windows.Forms.HelpInfo helpInfo ) : System
UpdateButtons ( ) : void
UpdateButtonsSizing ( ) : Size
UpdateDefault ( ) : void
UpdateHelp ( ) : void
UpdateIcon ( ) : void
UpdateMessageSizing ( ) : Size
UpdateSizing ( ) : void
UpdateText ( ) : void
button_keyDown ( object sender, KeyEventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Show() public static method

Displays a message box in front of the specified object and with the specified text.
public static Show ( IWin32Window owner, string text ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
return DialogResult

Show() public static method

Displays a message box in front of the specified object and with the specified text and caption.
public static Show ( IWin32Window owner, string text, string caption ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
return DialogResult

Show() public static method

Displays a message box in front of the specified object and with the specified text, caption, and buttons.
public static Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
return DialogResult

Show() public static method

Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon.
public static Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
return DialogResult

Show() public static method

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.
public static Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
return DialogResult

Show() public static method

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.
public static Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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.
return DialogResult

Show() public static method

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
public static Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
return DialogResult

Show() public static method

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 Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
navigator HelpNavigator One of the System.Windows.Forms.HelpNavigator values.
return DialogResult

Show() public static method

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 Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
navigator HelpNavigator One of the System.Windows.Forms.HelpNavigator values.
param object The numeric ID of the Help topic to display when the user clicks the Help button.
return DialogResult

Show() public static method

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 Show ( IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword ) : DialogResult
owner IWin32Window Owner of the modal dialog box.
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
keyword string The Help keyword to display when the user clicks the Help button.
return DialogResult

Show() public static method

Displays a message box with specified text.
public static Show ( string text ) : DialogResult
text string The text to display in the message box.
return DialogResult

Show() public static method

Displays a message box with specified text and caption.
public static Show ( string text, string caption ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
return DialogResult

Show() public static method

Displays a message box with specified text, caption, and buttons.
public static Show ( string text, string caption, MessageBoxButtons buttons ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
return DialogResult

Show() public static method

Displays a message box with specified text, caption, buttons, and icon.
public static Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
return DialogResult

Show() public static method

Displays a message box with the specified text, caption, buttons, icon, and default button.
public static Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
return DialogResult

Show() public static method

Displays a message box with the specified text, caption, buttons, icon, default button, and options.
public static Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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.
return DialogResult

Show() public static method

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
public static Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, bool displayHelpButton ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 bool Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
return DialogResult

Show() public static method

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.
public static Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
return DialogResult

Show() public static method

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 Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
navigator HelpNavigator One of the System.Windows.Forms.HelpNavigator values.
return DialogResult

Show() public static method

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 Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
navigator HelpNavigator One of the System.Windows.Forms.HelpNavigator values.
param object The numeric ID of the Help topic to display when the user clicks the Help button.
return DialogResult

Show() public static method

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 Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword ) : DialogResult
text string The text to display in the message box.
caption string The text to display in the title bar of the message box.
buttons MessageBoxButtons One of the System.Windows.Forms.MessageBoxButtons values that specifies which buttons to display in the message box.
icon MessageBoxIcon One of the System.Windows.Forms.MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton MessageBoxDefaultButton One of the System.Windows.Forms.MessageBoxDefaultButton values that specifies the default button for the message box.
options MessageBoxOptions One of the System.Windows.Forms.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 string The path and name of the Help file to display when the user clicks the Help button.
keyword string The Help keyword to display when the user clicks the Help button.
return DialogResult