1

I'm currently trying to get the key pressed on textbox keydown. As I need to print it, I need to get the right key and not a code. When I go e.KeyData I get Pairs(Aa for a for Example). How can I get the right key ? Thanks

| improve this question | | | | |
  • Please show your code – Flydog57 yesterday
  • Assuming you are talking about the KeyPressed event (hard to tell without your code!), the KeyData property is typed as a Keys. Keys is a [Flags] enum. If you query it properly it will tell you everything you need (though not directly). What do you mean by When I go e.KeyData I get Pairs(Aa for a for Example)? What does aA mean in that sentence? Show us your code – Flydog57 yesterday

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy正规365体育投注

Browse other questions tagged or ask your own question.