5
Answers

How to implement key event for button click event

Ask a question
Su Gia

Su Gia

14y
6.5k
1
Hi everybody!
I'm writing a virtual keyboard, and i have a problem.
As we know when press a key on real keyboard, control which focused will receive key event (defined by .Net)
for example:
you focus in a Multi line textbox, when you press key Enter. textbox will add 1 line and show cursor at that line.
. I think that textbox will receive Enter 's key code , after that textbox will perform 1 action with this Enter keycode. 

so now i want to know that how to implement key event from buttton click event for a control. 
Please help me! Thanks!!!
Kind regards.
Sugia

Answers (5)