Ctrl, Shift & Alt (Over multiple forms)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Question:
Can anyone tell me how to >>reliably<< monitor Command Key states
inside my application to alter the interface?

Situation: (Skip to Problem if it gets tedious)
Application consisting of multiple forms, uses Ctrl, Shift & Alt to
alter the behavior of command buttons. In addition to altering the
behavior of command buttons, holding down a command key alters the
interface, showing captions describing the altered behaviors.

Example (ShiftState / Behavior)

0 / Save
1 / Save (only) Selected items
2 / Save (only) Filtered items
3 / Save Selected Filtered items
....

Command buttons check Shift states and with KeyDown/KeyUp on the forms,
Shift is routed to a central sub which controls Command button
captions. It works, but poorly.

Problem:
When holding-down (combinations of) Ctrl, Shift and Alt is used to
browse the interface, at times it gets stuck. Sometimes it seem all of
the forms have lost focus somehow (and you have to click a form and
jiggle the keys to reset) or a keycombo is stuck (in KeyDown?) (and you
have to jiggle the keys to reset.)

.



Relevant Pages

  • Re: Ctrl, Shift & Alt (Over multiple forms)
    ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ... Command buttons check Shift states and with KeyDown/KeyUp on the forms, ... jiggle the keys to reset) or a keycombo is stuck (and you ...
    (microsoft.public.vb.general.discussion)
  • Re: Ctrl, Shift & Alt (Over multiple forms)
    ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ... Command buttons check Shift states and with KeyDown/KeyUp on the forms, ...
    (microsoft.public.vb.general.discussion)
  • Re: pix nat
    ... is not in the same subnet as your inside interface 10.112.2.241. ... You would need a 'static' command, and you would need a 'route' ... and you would need to alter the access-list that you have applied ... to the outside interface by using the access-group command. ...
    (comp.dcom.sys.cisco)
  • Re: Ctrl, Shift & Alt (Over multiple forms)
    ... Application consisting of multiple forms, uses Ctrl, Shift & Alt to ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ...
    (microsoft.public.vb.general.discussion)
  • Re: Arithmetic shift right
    ... I'm really sorry for asking so many questions in one single thread, ... Command LSR (Logical Shift Right) shifts all the bits by one to the ... I can see LSR being used for division, but what would the use of ASR ...
    (alt.lang.asm)