MsgBoxResult MsgBoxResult MsgBoxResult 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

Fields

Abort Abort Abort Abort 3

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

Cancel Cancel Cancel Cancel 2

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

Ignore Ignore Ignore Ignore 5

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

No No No No 7

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

Ok Ok Ok Ok 1

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

OK OK OK OK 1
Retry Retry Retry Retry 4

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

Yes Yes Yes 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