### YamlMime:ManagedReference items: - uid: Terminal.Gui.MessageBox id: MessageBox children: - Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[]) - Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[]) langs: - csharp name: MessageBox nameWithType: MessageBox fullName: Terminal.Gui.MessageBox type: Class assemblies: - Terminal.Gui namespace: Terminal.Gui summary: Message box displays a modal message to the user, with a title, a message and a series of options that the user can choose from. syntax: content: public static class MessageBox inheritance: - System.Object implements: [] inheritedMembers: [] - uid: Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[]) id: ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[]) parent: Terminal.Gui.MessageBox langs: - csharp name: ErrorQuery(Int32, Int32, String, String, String[]) nameWithType: MessageBox.ErrorQuery(Int32, Int32, String, String, String[]) fullName: MessageBox.ErrorQuery(Int32, Int32, String, String, String[]) type: Method assemblies: - Terminal.Gui namespace: Terminal.Gui summary: Presents an error message box with the specified title and message and a list of buttons to show to the user. syntax: content: public static int ErrorQuery (int width, int height, string title, string message, string[] buttons); parameters: - id: width type: System.Int32 description: Width for the window. - id: height type: System.Int32 description: Height for the window. - id: title type: System.String description: Title for the query. - id: message type: System.String description: Message to display, might contain multiple lines.. - id: buttons type: System.String[] description: Array of buttons to add. return: type: System.Int32 description: The index of the selected button, or -1 if the user pressed ESC to close the dialog. overload: Terminal.Gui.MessageBox.ErrorQuery* exceptions: [] - uid: Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[]) id: Query(System.Int32,System.Int32,System.String,System.String,System.String[]) parent: Terminal.Gui.MessageBox langs: - csharp name: Query(Int32, Int32, String, String, String[]) nameWithType: MessageBox.Query(Int32, Int32, String, String, String[]) fullName: MessageBox.Query(Int32, Int32, String, String, String[]) type: Method assemblies: - Terminal.Gui namespace: Terminal.Gui summary: Presents a message with the specified title and message and a list of buttons to show to the user. syntax: content: public static int Query (int width, int height, string title, string message, string[] buttons); parameters: - id: width type: System.Int32 description: Width for the window. - id: height type: System.Int32 description: Height for the window. - id: title type: System.String description: Title for the query. - id: message type: System.String description: Message to display, might contain multiple lines.. - id: buttons type: System.String[] description: Array of buttons to add. return: type: System.Int32 description: The index of the selected button, or -1 if the user pressed ESC to close the dialog. overload: Terminal.Gui.MessageBox.Query* exceptions: [] references: - uid: System.Object parent: System isExternal: true name: Object nameWithType: Object fullName: System.Object - uid: Terminal.Gui.MessageBox.ErrorQuery(System.Int32,System.Int32,System.String,System.String,System.String[]) parent: Terminal.Gui.MessageBox isExternal: false name: ErrorQuery(Int32, Int32, String, String, String[]) nameWithType: MessageBox.ErrorQuery(Int32, Int32, String, String, String[]) fullName: MessageBox.ErrorQuery(Int32, Int32, String, String, String[]) - uid: System.Int32 parent: System isExternal: true name: Int32 nameWithType: Int32 fullName: System.Int32 - uid: System.String parent: System isExternal: true name: String nameWithType: String fullName: System.String - uid: System.String[] parent: System isExternal: true name: String[] nameWithType: String[] fullName: System.String[] spec.csharp: - uid: System.String name: String nameWithType: String fullName: System.String - name: '[]' nameWithType: '[]' fullName: '[]' - uid: Terminal.Gui.MessageBox.Query(System.Int32,System.Int32,System.String,System.String,System.String[]) parent: Terminal.Gui.MessageBox isExternal: false name: Query(Int32, Int32, String, String, String[]) nameWithType: MessageBox.Query(Int32, Int32, String, String, String[]) fullName: MessageBox.Query(Int32, Int32, String, String, String[]) - uid: Terminal.Gui.MessageBox.ErrorQuery* parent: Terminal.Gui.MessageBox isExternal: false name: ErrorQuery nameWithType: MessageBox.ErrorQuery fullName: MessageBox.ErrorQuery - uid: Terminal.Gui.MessageBox.Query* parent: Terminal.Gui.MessageBox isExternal: false name: Query nameWithType: MessageBox.Query fullName: MessageBox.Query