Share via


Constants.vbDefaultButton1 フィールド

定義

メッセージ ボックスが表示されるときに、左端のボタンが既定のボタンとして選択されることを示します。

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton1 = 0;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton1 = 0;
val mutable vbDefaultButton1 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton1 As MsgBoxStyle  = 0

フィールド値

Value = 0

' Set the Abort button as the default button.
MsgBox("Error occurred", vbDefaultButton1 Or vbAbortRetryIgnore)

注釈

関数を MsgBox 呼び出すときは、実際の値の MsgBoxStyle 代わりに、コードで 列挙型を使用できます。 引数は Buttons 列挙メンバーを MsgBoxStyle 受け取ります。

適用対象

こちらもご覧ください