preventing controls from handling key events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hallo,
i would like to prevent TextBox and ComboBox from handling some keyevents. I
have installed SP3. For example TextBox should not handle Keys.Up/Down,
ComboBox should not handle alphabetic keys ans so on... (i would like make
own handlers in derived controls).
I tryed to register KeyDown handler witch sets KeyEventArgs.Handled to true,
override OnKeyDown,Up,Press without calling base.OnKey... but without any
success. Is there any way to do so?
 
How do you get the control to get the events in the first place?
Under smartphone, they are not getting to the control?

Miron
 

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

Back
Top