Constants.vbDefaultButton2 フィールド

定義

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

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton2 = 256;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton2 = 256;
val mutable vbDefaultButton2 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton2 As MsgBoxStyle  = 256

フィールド値

Value = 256

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

注釈

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

適用対象

こちらもご覧ください