Creating a keydown event

G

Guest

I am trying to create a custom keypad that sends key presses to a text box.
I thought that it would be as simple as raising a keydown event through the
text box's OnKeyDown( ) member function, but I see that it is a protected
method. Also, I saw that there is a SendKeys class, but unfortunately it
isn't supported in the Compact Framework. Is there a way to raise a keydown
event from my (panel) control so that the TextBox would act on it? Would
there be a problem if I just derived a new TextBox class and added public
methods that called the protected OnKeyDown, etc. Handlers?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top