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.v18.1.dll

Declaration

public DialogResult GetUserChoice(
    string message,
    string caption,
    MessageBoxButtons buttons
)
Public Function GetUserChoice(
    message As String,
    caption As String,
    buttons As MessageBoxButtons
) As DialogResult

Parameters

Type Name Description
String message

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

String caption

A string which is the message box caption.

MessageBoxButtons buttons

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.

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