Table of Contents

Class MessageBox

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MessageBox displays a modal message to the user, with a title, a message and a series of options that the user can choose from.

public static class MessageBox
Inheritance
MessageBox
Inherited Members

Examples

var n = MessageBox.Query ("Quit Demo", "Are you sure you want to quit this demo?", "Yes", "No");
if (n == 0)
   quit = true;
else
   quit = false;

Properties

Clicked

The index of the selected button, or -1 if the user pressed ESC to close the dialog. This is useful for web based console where by default there is no SynchronizationContext or TaskScheduler.

Methods

ErrorQuery(ustring, ustring, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

ErrorQuery(ustring, ustring, int, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

ErrorQuery(ustring, ustring, int, Border, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

ErrorQuery(int, int, ustring, ustring, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

ErrorQuery(int, int, ustring, ustring, int, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

ErrorQuery(int, int, ustring, ustring, int, Border, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

Query(ustring, ustring, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

Query(ustring, ustring, int, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

Query(ustring, ustring, int, Border, params ustring[])

Presents an error MessageBox with the specified title and message and a list of buttons to show to the user.

Query(int, int, ustring, ustring, params ustring[])

Presents a normal MessageBox with the specified title and message and a list of buttons to show to the user.

Query(int, int, ustring, ustring, int, params ustring[])

Presents a normal MessageBox with the specified title and message and a list of buttons to show to the user.

Query(int, int, ustring, ustring, int, Border, params ustring[])

Presents a normal MessageBox with the specified title and message and a list of buttons to show to the user.