AltKeyDown Property


AltKeyDown Property

Location

My.Computer.Keyboard.AltKeyDown

Syntax

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

Description

The AltKeyDown property that indicates the current state of the Alt 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 Alt keys, this setting indicates whether either Alt key is pressed. To examine the state of a specific Alt key during a control event, perform a bitwise comparison of the control's ModifierKeys property with the Keys.LMenu or Keys.RMenu enumeration value.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.Keyboard.AltKeyDown Property

  • System.Windows.Forms.Control.ModifierKeys Property

  • System.Windows.Forms.Keys Enumeration

See Also

CtrlKeyDown 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