This documentation is archived and is not being maintained.
MsgBoxResult Enumeration
Visual Studio 2010
Indicates which button was pressed on a message box, returned by the MsgBox function.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
| Member name | Description | |
|---|---|---|
| Ok | OK button was pressed. This member is equivalent to the Visual Basic constant vbOK. | |
| Cancel | Cancel button was pressed. This member is equivalent to the Visual Basic constant vbCancel. | |
| Abort | Abort button was pressed. This member is equivalent to the Visual Basic constant vbAbort. | |
| Retry | Retry button was pressed. This member is equivalent to the Visual Basic constant vbRetry. | |
| Ignore | Ignore button was pressed. This member is equivalent to the Visual Basic constant vbIgnore. | |
| Yes | Yes button was pressed. This member is equivalent to the Visual Basic constant vbYes. | |
| No | No button was pressed. This member is equivalent to the Visual Basic constant vbNo. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: