Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Guide.BeginShowMessageBox Method (String, String, Generic IEnumerable, Int32, MessageBoxIcon, AsyncCallback, Object)

Begins the process of displaying a message box to which any user on the system can respond.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

public static IAsyncResult BeginShowMessageBox (
         string title,
         string text,
         IEnumerable<string> buttons,
         int focusButton,
         MessageBoxIcon icon,
         AsyncCallback callback,
         Object state


Type: String
Title of the message box.
Type: String
Text that will be displayed by the message box.
Type: IEnumerable<String>
Captions for message box buttons. The maximum number of buttons is two on Windows Phone, and three on Xbox 360 or Windows.
Type: Int32
Zero-based index specifying which button has the focus.
Type: MessageBoxIcon
Type of icon displayed in the message box.
Type: AsyncCallback
Method to be called once the asynchronous operation is finished.
Type: Object
User-created object uniquely identifying this request.

Return Value

An IAsyncResult used to track the progress of the method.

Exception typeCondition
InvalidOperationException Either IsInitialized was not called previously, or a Guide user interface screen currently is active.

On Xbox 360, this overload allows any player on the system to respond to the message.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft