Keyboard.ScrollLock Properti

Definisi

Mendapatkan indikasi Boolean apakah tombol SCROLL LOCK aktif.

public:
 property bool ScrollLock { bool get(); };
public bool ScrollLock { get; }
member this.ScrollLock : bool
Public ReadOnly Property ScrollLock As Boolean

Nilai Properti

True jika SCROLL LOCK aktif; jika tidak, False.

Contoh

Contoh ini menggunakan My.Computer.Keyboard.ScrollLock properti untuk menentukan apakah kunci SCROLL LOCK komputer aktif.

If My.Computer.Keyboard.ScrollLock Then
    MsgBox("SCROLL LOCK on")
Else
    MsgBox("SCROLL LOCK off")
End If

Keterangan

Hanya status kunci SCROLL LOCK yang dikembalikan.

Ketersediaan menurut Jenis Proyek

Jenis proyek Available
Aplikasi Windows Yes
Pustaka Kelas Yes
Aplikasi Konsol Yes
Pustaka Kontrol Windows Yes
Perpustakaan Kontrol Situs Web No
Layanan Windows Yes
Situs Web No

Berlaku untuk

Lihat juga