Reverse Tab equivilent of this.ProcessTabKey()?

  • Thread starter Thread starter Bill Fuller
  • Start date Start date
B

Bill Fuller

I have an application that is modifying the ENTER key to use
this.ProcessTabKey() for data entry screens (replacing a green-screen
Telenet app). I would like to do the equivilent of ths.ProcessReverseTab()
for ALT-ENTER, but no such animal exists. Does anyone know how this could be
done?
 
You can check the static Control.ModifierKeys property:

if ((Control.ModifierKeys & Keys.Alt) == Keys.Alt)
{
// alt is pressed
}

Note that you don't actually have to be in a Form to do this; it even
works from a console exe if you add a reference to System.Windows.Forms.

Marc
 
If you meant "how to move backwards", Control.SelectNextControl has a
"forward" argument; specify false and you'll move backwards.

Marc
 
Thank you. Moving back is what I had in mind. There didn't seem to be an
equivielent Process key for this.
 
Back
Top