Constants.vbDefaultButton2 Feld

Definition

Gibt an, dass die zweite Schaltfläche von links als Standardschaltfläche ausgewählt wird, wenn das Meldungsfeld angezeigt wird.

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

Feldwert

Value = 256

Beispiele

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

Hinweise

Wenn Sie die MsgBox Funktion aufrufen, können Sie die MsgBoxStyle Enumeration im Code anstelle der tatsächlichen Werte verwenden. Das Buttons Argument übernimmt die Enumerationsmember MsgBoxStyle .

Gilt für:

Weitere Informationen