Share via


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 受け取ります。

適用対象

こちらもご覧ください