Upraviť

Zdieľať cez


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

Name Value Description
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.

Cancel 2

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

Abort 3

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

Retry 4

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

Ignore 5

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

Yes 6

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

No 7

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

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