Constants.vbDefaultButton3 欄位

定義

表示當訊息框出現時,從左數第三個按鈕被選為預設按鈕。

public: Microsoft::VisualBasic::MsgBoxStyle vbDefaultButton3 = 512;
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton3 = 512;
val mutable vbDefaultButton3 : Microsoft.VisualBasic.MsgBoxStyle
Public Const vbDefaultButton3 As MsgBoxStyle  = 512

欄位值

Value = 512

範例

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

備註

當你呼叫函式時 MsgBox ,你可以在程式碼中用 MsgBoxStyle 列舉來取代實際的值。 該 Buttons 論證取 MsgBoxStyle 列舉成員。

適用於

另請參閱