MessageBoxImage Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the icon that is displayed by a message box.
public enum class MessageBoxImage
public enum MessageBoxImage
type MessageBoxImage =
Public Enum MessageBoxImage
- Inheritance
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 |
---|---|
Hand | |
Question | |
Exclamation | |
Asterisk | |
Stop | |
Error | |
Warning | |
Information |
For a sample that demonstrates several options when using the MessageBox, see MessageBox Sample.