Edit

Share via


MsgBoxResult Enum

Definition

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
MsgBoxResult

Fields

Abort 3

Abort button was pressed. This member is equivalent to the Visual Basic constant vbAbort.

Cancel 2

Cancel button was pressed. This member is equivalent to the Visual Basic constant vbCancel.

Ignore 5

Ignore button was pressed. This member is equivalent to the Visual Basic constant vbIgnore.

No 7

No button was pressed. This member is equivalent to the Visual Basic constant vbNo.

Ok 1

OK button was pressed. This member is equivalent to the Visual Basic constant vbOK.

OK 1

OK button was pressed. This member is equivalent to the Visual Basic constant vbOK.

Retry 4

Retry button was pressed. This member is equivalent to the Visual Basic constant vbRetry.

Yes 6

Yes button was pressed. This member is equivalent to the Visual Basic constant vbYes.

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.

Applies to

See also