Keyboard.ScrollLock Eigenschaft

Definition

Ruft einen Boolean Wert ab, der angibt, ob die SCROLL-TASTE aktiviert ist.

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

Eigenschaftswert

Truewenn DIE BILDLAUFSPERRE aktiviert ist; andernfalls . False

Beispiele

In diesem Beispiel wird mithilfe der My.Computer.Keyboard.ScrollLock Eigenschaft ermittelt, ob die SCROLL-TASTE des Computers aktiviert ist.

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

Hinweise

Es wird nur der Status der BILDLAUF-TASTE zurückgegeben.

Verfügbarkeit nach Projekttyp

Projekttyp Available
Windows-Anwendung Ja
Klassenbibliothek Ja
Konsolenanwendung Ja
Windows-Steuerelementbibliothek Ja
Websteuerelementbibliothek Nein
Windows-Dienst Ja
Website Nein

Gilt für:

Weitere Informationen