I use the previewKeyDown() function for some controls in my project but they always get called twice for each key press. Anyone who knows how to solve this?
And is there anyway to do a global keylistener in my project?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The WebBrowser control I think has a bug, it fires that twice no matter what. I solved it via what I consider a hack, but it works. 🙂 Mines in VB, but you get the gist of it, basically make a bool in your form’s scope and use it to negate one of the two events that are fired: