MessageDialog.IconType

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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