Constants.vbOKOnly Field


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Indicates that only the OK button will be displayed when the MsgBox function is called.

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

public const MsgBoxStyle vbOKOnly

When you call the MsgBox function, you can use the MsgBoxStyle enumeration in your code in place of the actual values. The Buttons argument takes the MsgBoxStyle enumeration members.

.NET Framework
Available since 1.1
Return to top