Constants.vbDefaultButton3 Campo

Definición

Indica que el tercer botón de la izquierda se selecciona como botón predeterminado cuando aparece el cuadro de mensaje.

C#
public const Microsoft.VisualBasic.MsgBoxStyle vbDefaultButton3 = 512;

Valor de campo

Value = 512

Ejemplos

VB
' Set the Ignore button as the default button.
MsgBox("Error occurred", vbDefaultButton3 Or vbAbortRetryIgnore)

Comentarios

Al llamar a la MsgBox función , puede usar la MsgBoxStyle enumeración en el código en lugar de los valores reales. El Buttons argumento toma los miembros de MsgBoxStyle enumeración.

Se aplica a

Producto Versiones
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Consulte también