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
width
intWidth for the MessageBox.
height
intHeight for the MessageBox.
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttons
string[]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
title
stringTitle for the query.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
buttons
string[]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
width
intWidth for the MessageBox.
height
intHeight for the MessageBox.
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
buttons
string[]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
title
stringTitle for the MessageBox.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
buttons
string[]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
width
intWidth for the window.
height
intHeight for the window.
title
stringTitle for the query.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
wrapMessage
boolIf wrap the message or not.
buttons
string[]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
title
stringTitle for the query.
message
stringMessage to display; might contain multiple lines. The message will be word=wrapped by default.
defaultButton
intIndex of the default button.
wrapMessage
boolIf wrap the message or not. The default is true
buttons
string[]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.