Back to Devexpress

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

windowsforms-devexpress-dot-xtraeditors-dot-xtradialog-dot-show-x28-control-string-messageboxbuttons-messageboxdefaultbutton-defaultboolean-x29.md

latest3.0 KB
Original Source

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

Invokes a dialog with the specified settings.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static DialogResult Show(
    Control content,
    string caption,
    MessageBoxButtons buttons,
    MessageBoxDefaultButton defaultButton,
    DefaultBoolean allowHtmlText
)
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Shared Function Show(
    content As Control,
    caption As String,
    buttons As MessageBoxButtons,
    defaultButton As MessageBoxDefaultButton,
    allowHtmlText As DefaultBoolean
) As DialogResult

Parameters

NameTypeDescription
contentControl

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.

| | allowHtmlText | DefaultBoolean |

A value that specifies whether HTML tags can be used to format the dialog’s caption.

|

Returns

TypeDescription
DialogResult

One of the DialogResult values.

|

See Also

XtraDialog Class

XtraDialog Members

DevExpress.XtraEditors Namespace