Constants.vbDefaultButton1 Campo

Definição

Indica que o botão mais à esquerda está selecionado como botão padrão quando a caixa de mensagem aparece.

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

Valor de Campo

Value = 0

Exemplos

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

Observações

Quando chamas a MsgBox função, podes usar a MsgBoxStyle enumeração no teu código em vez dos valores reais. O Buttons argumento toma os MsgBoxStyle membros da enumeração.

Aplica-se a

Ver também