Skip to main content

XtraMessageBox.Icons Property

Provides access to custom XtraMessageBox icons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public static Dictionary<MessageBoxIcon, Icon> Icons { get; }

Property Value

Type Description
Dictionary<MessageBoxIcon, Icon>

A Dictionary<TKey,TValue><MessageBoxIcon,Icon,> object that stores custom XtraMessageBox icons.

Remarks

The code sample below illustrates how to display a custom exclamation icon in the XtraMessageBox box.

Icon customIcon = new Icon("C:\\MyCustomIcon.ico");
XtraMessageBox.Icons[MessageBoxIcon.Exclamation] = customIcon;
XtraMessageBox.Show("text", "caption", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
See Also