MsgBoxResult Enumeration
.NET Framework 3.0
Indicates which button was pressed on a message box, returned by the MsgBox function.
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)
| Member name | Description | |
|---|---|---|
![]() | Abort | Abort button was pressed. This member is equivalent to the Visual Basic constant vbAbort. |
![]() | Cancel | Cancel button was pressed. This member is equivalent to the Visual Basic constant vbCancel. |
![]() | Ignore | Ignore button was pressed. This member is equivalent to the Visual Basic constant vbIgnore. |
![]() | No | No button was pressed. This member is equivalent to the Visual Basic constant vbNo. |
![]() | Ok | |
![]() | OK | OK button was pressed. This member is equivalent to the Visual Basic constant vbOK. |
![]() | Retry | Retry button was pressed. This member is equivalent to the Visual Basic constant vbRetry. |
![]() | Yes | Yes button was pressed. This member is equivalent to the Visual Basic constant vbYes. |
For more detailed information, see the Visual Basic topic MsgBoxResult Enumeration.
When you call the MsgBox function, you can use the MsgBoxResult enumeration in your code in place of the actual values.
The MsgBox function returns a MsgBoxResult enumeration value.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show:
