Back to Devexpress

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

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

latest2.8 KB
Original Source

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

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Parameters

NameTypeDescription
ownerIWin32Window

An object that serves as the dialog’s top-level window and owner.

| | 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.

|

Returns

TypeDescription
DialogResult

One of the DialogResult values.

|

See Also

XtraDialog Class

XtraDialog Members

DevExpress.XtraEditors Namespace