XtraDialog.Show(Control, String, MessageBoxButtons, MessageBoxDefaultButton) Method

Invokes a dialog with the specified control, caption, buttons and default button.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll


public static DialogResult Show(
    Control content,
    string caption,
    MessageBoxButtons buttons,
    MessageBoxDefaultButton defaultButton
Public Shared Function Show(
    content As Control,
    caption As String,
    buttons As MessageBoxButtons,
    defaultButton As MessageBoxDefaultButton
) As DialogResult


Name Type Description
content Control

A control to be displayed in the dialog's client area.

caption String

A string that specifies the dialog's caption.

buttons MessageBoxButtons

A value that specifies which buttons should be displayed in the dialog.

defaultButton MessageBoxDefaultButton

One of the MessageBoxDefaultButton values that specifies the default button for the dialog.


Type Description

One of the DialogResult values.

See Also