MessageBox.IHandler

References
public interface MessageBox.IHandler
Handler interface for the MessageBox

Properties

Buttons

#
MessageBoxButtons Buttons { get; set; }
Gets or sets which buttons to show on the message box.

Caption

#
string Caption { get; set; }
Gets or sets the caption for the title bar or heading of the message box.

DefaultButton

#
MessageBoxDefaultButton DefaultButton { get; set; }
Gets or sets the default button, or MessageBoxDefaultButton.Default to automatically select either Cancel or No if displayed.

Text

#
string Text { get; set; }
Gets or sets the body text of the message box.

Type

#
MessageBoxType Type { get; set; }
Gets or sets the type of message box, usually changing the icon displayed.

Methods

ShowDialog

#
DialogResult ShowDialog(Control parent)
Shows the dialog.
parent (Control)Optional parent. If specified, the parent's window should be blocked from input. If null, all windows should be blocked.
The dialog result.