Keyboard.ScrollLock Propriété

Définition

Obtient une valeur Boolean indiquant si la touche ARRÊT DÉFIL. est activée.

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

Valeur de propriété

True si SCROLL LOCK est activé ; sinon, False.

Exemples

Cet exemple utilise la My.Computer.Keyboard.ScrollLock propriété pour déterminer si la touche SCROLL LOCK de l’ordinateur est activée.

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

Remarques

Seul l’état de la touche SCROLL LOCK est retourné.

Disponibilité par type de projet

Type de projet Disponible
Application Windows Oui
Bibliothèque de classes Oui
Application console Oui
Bibliothèque de contrôles Windows Oui
Bibliothèque de contrôles web Non
Service Windows Oui
Site web Non

S’applique à

Voir aussi