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.
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.