Skip to main content
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

WinApplication.GetUserChoice(String, MessageBoxButtons) Method

Displays a message box with the specified text and set of buttons.

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v23.1.dll

NuGet Package: DevExpress.ExpressApp.Win


public DialogResult GetUserChoice(
    string message,
    MessageBoxButtons buttons


Name Type Description
message String

A string, which is the message to be displayed within the message box.

buttons MessageBoxButtons

A MessageBoxButtons enumeration value defining buttons to display.


Type Description

A DialogResult enumeration value specifying the user choice.


Uses the Messaging.GetUserChoice method to display a message box. The caption is set to the XafApplication.Title value.

See Also