Edit

Share via


MessageBoxImage Enum

Definition

Specifies the icon that is displayed by a message box.

public enum class MessageBoxImage
public enum MessageBoxImage
type MessageBoxImage = 
Public Enum MessageBoxImage
Inheritance
MessageBoxImage

Fields

Name Value Description
None 0

The message box contains no symbols.

Error 16

The message box contains a symbol consisting of white X in a circle with a red background.

Hand 16

The message box contains a symbol consisting of a white X in a circle with a red background.

Stop 16

The message box contains a symbol consisting of white X in a circle with a red background.

Question 32

The message box contains a symbol consisting of a question mark in a circle. The question mark message icon is no longer recommended because it does not clearly represent a specific type of message and because the phrasing of a message as a question could apply to any message type. In addition, users can confuse the question mark symbol with a help information symbol. Therefore, do not use this question mark symbol in your message boxes. The system continues to support its inclusion only for backward compatibility.

Exclamation 48

The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background.

Warning 48

The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background.

Asterisk 64

The message box contains a symbol consisting of a lowercase letter i in a circle.

Information 64

The message box contains a symbol consisting of a lowercase letter i in a circle.

Remarks

The following table shows the different message box icons.

Icon Name
White X in red circle Hand
White question mark in blue circle Question
Black exclamation point in yellow triangle Exclamation
White lowercase i in blue circle Asterisk
White X in red circle Stop
White X in red circle Error
Black exclamation point in yellow triangle Warning
White lowercase i in blue circle Information

For a sample that demonstrates several options when using the MessageBox, see MessageBox Sample.

Applies to

See also