MsgBoxResult 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.
Indicates which button was pressed on a message box, returned by the MsgBox
function.
public enum class MsgBoxResult
public enum MsgBoxResult
type MsgBoxResult =
Public Enum MsgBoxResult
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Ok | 1 | OK button was pressed. This member is equivalent to the Visual Basic constant |
OK | 1 | OK button was pressed. This member is equivalent to the Visual Basic constant |
Cancel | 2 | Cancel button was pressed. This member is equivalent to the Visual Basic constant |
Abort | 3 | Abort button was pressed. This member is equivalent to the Visual Basic constant |
Retry | 4 | Retry button was pressed. This member is equivalent to the Visual Basic constant |
Ignore | 5 | Ignore button was pressed. This member is equivalent to the Visual Basic constant |
Yes | 6 | Yes button was pressed. This member is equivalent to the Visual Basic constant |
No | 7 | No button was pressed. This member is equivalent to the Visual Basic constant |
Remarks
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.