Specifies that the message box contains OK and Cancel buttons. This field is constant.
[Visual Basic] Public Const OKCancel As Integer [C#] public const int OKCancel; [C++] public: const int OKCancel; [JScript] public var OKCancel : int;
Use this value for the style parameter of Show. You can use the bitwise OR to combine this value with values starting with ICON and DEFBUTTON, but not with other button styles.
MessageBox Class | MessageBox Members | System.WinForms Namespace