http://www.sergeybogdanov.com/Samples/TextBoxKeyDownFilter.zip
The same technique can be used to ComboBox control.
Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
Michal Rizek wrote:
> 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?
Miron
"Michal Rizek" <Micha...@discussions.microsoft.com> wrote in message
news:44C77A6C-7FC3-4FEC...@microsoft.com...