2
Answers

Not getting Events

Photo of shusaku

shusaku

20y
2.7k
1
I'm working on tablet PC program, and I want to get keyboard input. Unfortunately, the program doesn't get the keypress event... I do the following in order to activate the keyboard input under initialization: this.keypress += System.Windows.Forms.KeyPressEventHandler(this.myfunction); The program doesn't go into "myfunction" when I press keys.. Could someone help me out ?

Answers (2)

0
Photo of shusaku
NA 3 0 20y
Thanks Mykonian for your reply. But I did do that, but it still doesn't get the event.. Is this because I'm working with InkOverlay? Anyone else have solution to this problem?
0
Photo of Mykonine
NA 520 0 20y
You might want to try "this.keypress += new System.Windows.Forms.KeyPressEventHandler(this.myfunction);"