Bagikan melalui


Constants.vbDefaultButton1 Bidang

Definisi

Menunjukkan bahwa tombol paling kiri dipilih sebagai tombol default saat kotak pesan muncul.

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

Nilai Bidang

Value = 0

Contoh

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

Keterangan

Saat memanggil MsgBox fungsi, Anda dapat menggunakan MsgBoxStyle enumerasi dalam kode Anda sebagai pengganti nilai aktual. Argumen Buttons mengambil MsgBoxStyle anggota enumerasi.

Berlaku untuk

Lihat juga