XtraMessageBoxArgs.Icon Property
Gets or sets an XtraMessageBox icon. The icon is displayed in the message body.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Icon Icon { get; set; }
Property Value
Type | Description |
---|---|
Icon | An Icon object that specifies the message box icon. |
Remarks
The code below adds an icon to an XtraMessageBox.
using DevExpress.XtraEditors;
using System.Drawing;
using System.Windows.Forms;
// ...
XtraMessageBoxArgs args = new XtraMessageBoxArgs();
// ...
args.Icon = new Icon(@"D:\Warning_16x16.ico");
XtraMessageBox.Show(args);
The following image demonstrates the result.
Alternatively, you can use HtmlImages.
See Also