Constants.vbDefaultButton2 Campo

Definizione

Indica che il secondo pulsante da sinistra è selezionato come pulsante predefinito quando viene visualizzata la finestra di messaggio.

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

Valore del campo

Value = 256

Esempio

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

Commenti

Quando si chiama la MsgBox funzione, è possibile usare l'enumerazione MsgBoxStyle nel codice al posto dei valori effettivi. L'argomento Buttons accetta i membri dell'enumerazione MsgBoxStyle .

Si applica a

Vedi anche