With keypreview = true the key events in a combobox are not intercepted by the form. It does work in text boxes but it makes a beep too...anyone knows how to do it??

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>u3jc4ZrRGkmgJNVfwjmtyg==</Id>

Re: Keypreview does not work with ComboBox by hirf-spam-me-here

hirf-spam-me-here
Fri Apr 23 10:03:41 CDT 2004

* Victor CCC via .NET 247 <anonymous@dotnet247.com> scripsit:
> With keypreview = true the key events in a combobox are not
> intercepted by the form. It does work in text boxes but it makes a beep
> too...anyone knows how to do it??

I don't know how to do it, but you can try to override the form's
'OnKey*' methods and check if you get the messages here. BTW: That's a
bug in the combobox control.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>