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
Asterisk | 64 | The message box contains a symbol consisting of a lowercase letter i in a circle. |
Error | 16 | The message box contains a symbol consisting of white X in a circle with a red background. |
Exclamation | 48 | The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background. |
Hand | 16 | The message box contains a symbol consisting of a white X in a circle with a red background. |
Information | 64 | The message box contains a symbol consisting of a lowercase letter i in a circle. |
None | 0 | The message box contains no symbols. |
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. |
Stop | 16 | The message box contains a symbol consisting of white X in a circle with a red background. |
Warning | 48 | The message box contains a symbol consisting of an exclamation point in a triangle with a yellow background. |
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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om