Hi. I have the keypreview property of a form set to True and I am handling certain keys at the form level. This works fine for all controls except when a combobox has the focus. Has anyone seen this before and is there a remedy?
Sorted. I was using a derived combobox so I stuck in an overridden OnKeyDown method. It calls a routine on the mdiparent form which accepts the KeyEventArgs from the control. So if it handles the keydown event the control does nothing and if it doesn't then the combobox does it's normal thing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.