H
HyperX
Form1_Keypress(sender, KeyPress e) is a Form level event.
On TextBox key press, Form1_KeyPress() gets called. When I press a
key in TextBox, we assume, the sender has to be TextBox, right? No!
I do
sender.GetType() = Form1!!
Thats what is annoying...
How can I know from the Form1_KeyPress(x, x) if the user pressed a key
from within a control??
I hope I made it clear.
Thanks,
HyperX.
On TextBox key press, Form1_KeyPress() gets called. When I press a
key in TextBox, we assume, the sender has to be TextBox, right? No!
I do
sender.GetType() = Form1!!
Thats what is annoying...
How can I know from the Form1_KeyPress(x, x) if the user pressed a key
from within a control??
I hope I made it clear.
Thanks,
HyperX.