Share via


Constants.vbDefaultButton1 Campo

Definição

Indica que o botão mais à esquerda é selecionado como o botão padrão quando a caixa de mensagem é exibida.

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 do campo

Value = 0

Exemplos

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

Comentários

Ao chamar a função MsgBox, você pode usar a enumeração MsgBoxStyle no código em lugar dos valores reais. O Buttons argumento usa os membros de MsgBoxStyle enumeração.

Aplica-se a

Confira também