KeyPress event not working
Hey. I'm having a problem. In a form's constructor, I have:
this.KeyDown+=new KeyEventHandler(frmGScreen_KeyDown)
but the event handler does not invoke at all when I press a key on the keyboard. I know this because i have the code "txtOutput.Text="Event handler entered" as the first line of the handler, and nothing happens, and besides, the actions coded for specific keys do not execute.
I do have the form's KeyPreview property set to true. So this one truly stumps me. I just don't get it...
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
I guess I should have marked this as solved because i did fix it quit a while ago....cant remember how though..
scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140