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.

Messaging.GetUserChoice(String, String, MessageBoxButtons) Method

Displays a warning message box with specified message text, caption and buttons.

Namespace: DevExpress.ExpressApp.Win.Core

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


public DialogResult GetUserChoice(
    string message,
    string caption,
    MessageBoxButtons buttons


Name Type Description
message String

A string which is the text displayed within the message box.

caption String

A string which is the message box caption.

buttons MessageBoxButtons

A MessageBoxButtons enumeration value defining which buttons to display within the message box.


Type Description

A DialogResult enumeration value, which indicates the user choice made within the message box.


This method used the Messaging.Show method to display a message box. The MessageBoxIcon.Warning icon is displayed within the message box.


The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetUserChoice(String, String, MessageBoxButtons) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also