Method ErrorQuery
ErrorQuery(int, int, string, string, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons.
public static int ErrorQuery(int width, int height, string title, string message, params string[] buttons)
Parameters
widthintWidth for the MessageBox.
heightintHeight for the MessageBox.
titlestringTitle for the MessageBox.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttonsstring[]Array of buttons to add.
Returns
Remarks
Use ErrorQuery(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
ErrorQuery(string, string, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.
public static int ErrorQuery(string title, string message, params string[] buttons)
Parameters
titlestringTitle for the query.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttonsstring[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the title, message. and buttons.
ErrorQuery(int, int, string, string, int, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons.
public static int ErrorQuery(int width, int height, string title, string message, int defaultButton = 0, params string[] buttons)
Parameters
widthintWidth for the MessageBox.
heightintHeight for the MessageBox.
titlestringTitle for the MessageBox.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButtonintIndex of the default button.
buttonsstring[]Array of buttons to add.
Returns
Remarks
Use ErrorQuery(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
ErrorQuery(string, string, int, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.
public static int ErrorQuery(string title, string message, int defaultButton = 0, params string[] buttons)
Parameters
titlestringTitle for the MessageBox.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButtonintIndex of the default button.
buttonsstring[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the title, message. and buttons.
ErrorQuery(int, int, string, string, int, bool, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.
public static int ErrorQuery(int width, int height, string title, string message, int defaultButton = 0, bool wrapMessage = true, params string[] buttons)
Parameters
widthintWidth for the window.
heightintHeight for the window.
titlestringTitle for the query.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButtonintIndex of the default button.
wrapMessageboolIf wrap the message or not.
buttonsstring[]Array of buttons to add.
Returns
Remarks
Use ErrorQuery(string, string, params string[]) instead; it automatically sizes the MessageBox based on the contents.
ErrorQuery(string, string, int, bool, params string[])
Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.
public static int ErrorQuery(string title, string message, int defaultButton = 0, bool wrapMessage = true, params string[] buttons)
Parameters
titlestringTitle for the query.
messagestringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButtonintIndex of the default button.
wrapMessageboolIf wrap the message or not. The default is true
buttonsstring[]Array of buttons to add.
Returns
Remarks
The message box will be vertically and horizontally centered in the container and the size will be automatically determined from the size of the title, message. and buttons.