Skip to main content
A newer version of this page is available. .

XtraMessageBox.Icons Property

Provides access to custom XtraMessageBox icons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

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