Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsgBoxResult Enumeration

 

Indicates which button was pressed on a message box, returned by the MsgBox function.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public enum class MsgBoxResult

Member nameDescription
Abort

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

Cancel

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

Ignore

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

No

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

Ok

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

Retry

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

Yes

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

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft