XtraMessageBox.Icons Property
In This Article
Provides access to custom XtraMessageBox icons.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public static Dictionary<MessageBoxIcon, Icon> Icons { get; }
#Property Value
Type | Description |
---|---|
Dictionary<Message |
A Dictionary |
#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