Constants.vbDefaultButton1 Feld

Definition

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

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

Feldwert

Value = 0

Beispiele

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

Hinweise

Wenn Sie die MsgBox Funktion aufrufen, können Sie die MsgBoxStyle -Enumeration in Ihrem Code anstelle der tatsächlichen Werte verwenden. Das Buttons Argument akzeptiert die Enumerationsmember MsgBoxStyle .

Gilt für:

Weitere Informationen