• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

Receiving keystrokes as soon as a program is launched?

I have been given the task of optimizing the productivity done by the data entry people. I need to write a few small utilities. The important thing about this task is that the keystrokes needed to accomplish a task must be minimized. When my utility is launched the user needs to be able to start typing data. After the program is launched it has focus, but for some reason I do not receive KeyPress Events in my form. What must I do to fix this?

Thank you for your time,
Arrummzen
0
Arrummzen
Asked:
Arrummzen
1 Solution
 
TheAvengerCommented:
What controls do you have on the form? Which of them has the focus? If a text box has a focus, the form will not receive the KeyPress events, but the TextBox will handle them.
0
 
somnaticCommented:
on your form .. set the property KeyPreview to true ...

you should then receive all keypresses
0
 
ArrummzenAuthor Commented:
Thanks. Thats what I needed.

Thank you for your time,
Arrummzen
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now