CtrlKeyDown Property


CtrlKeyDown Property

Location

My.Computer.Keyboard.CtrlKeyDown

Syntax

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

Description

The CtrlKeyDown property indicates the current state of the Control key, whether down (TRue) or up (False).

Usage at a Glance

  • This property is read-only.

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

  • For systems with two Control keys, this setting indicates whether either Control key is pressed. To examine the state of a specific Control key during a control event, perform a bitwise comparison of the control's ModifierKeys property with the Keys.LControlKey or Keys.RControlKey enumeration value.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.Keyboard.CtrlKeyDown Property

  • System.Windows.Forms.Control.ModifierKeys Property

  • System.Windows.Forms.Keys Enumeration

See Also

AltKeyDown Property, Keyboard Object, ShiftKeyDown Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net