Constants.vbDefaultButton1 Feld

Definition

Gibt an, dass die schaltfläche ganz links als Standardschaltfläche ausgewählt ist, 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 verwendet die Enumerationsmmber MsgBoxStyle .

Gilt für:

Weitere Informationen