Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

CapsLock Property

Location

My.Computer.Keyboard.CapsLock

Syntax

Dim result As Boolean = My.Computer.Keyboard.CapsLock

Description

The CapsLock property indicates the current state of the Caps Lock key, whether on (TRue) or off (False).

Usage at a Glance

  • This property is read-only.

  • This property is only valid in non-server applications.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.Keyboard.CapsLock Property

See Also

Keyboard Object, NumLock Property, ScrollLock Property

Категории