Constructor MessageBoxEventArgs
MessageBoxEventArgs(string, IWin32Window?, string?, MessageBoxButtons, MessageBoxIcon)
Initializes a new instance of the MessageBoxEventArgs class with specified parameters.
public MessageBoxEventArgs(string message, IWin32Window? owner, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
messagestringThe text to display in the message box.
ownerIWin32WindowAn implementation of IWin32Window that will own the message box dialog.
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.
MessageBoxEventArgs(string, Window?, string?, MessageBoxButtons, MessageBoxIcon)
public MessageBoxEventArgs(string message, Window? owner, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
messagestringownerWindowcaptionstringbuttonsMessageBoxButtonsiconMessageBoxIcon