Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

#Declaration

public DialogResult GetUserChoice(
    string message,
    MessageBoxButtons buttons
)

#Parameters

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.

#Returns

Type Description
DialogResult

A DialogResult enumeration value specifying the user choice.

#Remarks

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

See Also