MessageDialog.IconType

From Xojo Documentation

aMessageDialog.IconType = newMessageDialog.IconTypesValue
or
MessageDialog.IconTypesValue = aMessageDialog.IconType

Supported for all project types and targets.

Indicates the type of icon to be displayed in the dialog.

Notes

Use the MessageDialog.IconTypes enumeration to specify the icon type.

Sample Code

Dim d As New MessageDialog
d.IconType = MessageDialog.IconTypes.Caution
d.Message = "Hello!"

Call d.ShowModal