2
Answers

KeyPress on form load

Ask a question
crausch

crausch

19y
3.5k
1
Is there a way for me to determine if a key is pressed during the launch of my program? I would like the user to hold down a key when launching my application and then I want to find out what that key is once the program is launched. Currently I have implemented both the KeyPress event and the KeyUp event but neither seem to respond unless the key was pressed after the application launched. Upon the form loading, I want to be able to see if a key is down and then determine what the key is. Can this be done?

Answers (2)