Skip to main content
.NET Framework 4.6.2+

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

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

#Declaration

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

#Parameters

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.

#Returns

Type Description
DialogResult

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

#Remarks

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

AskConfirmation_Save

See Also