When a listbox control has focus and a a key is pressed, it tries to select the item that matches that keystroke. I'd like to have it not do this at all in one particular place, but I cannot figure out how.
Is there an easy way to disable this behavior. I tried wiring to the keydown event (and doing nothing with it), but that doesn't seem to help.
I'm sure it's simple... just not seeing it. :)
ADAdministrator Syncfusion Team February 17, 2003 07:34 AM
The listbox control probably does this in it's OnKeyDown method (before firing the KeyDown event) or in ProcessCmdKey method.
Try overriding OnKeyDown and not call the base class in a derived class, this will prevent all keydown processing in the listbox control. If that doesn't work try overriding ProcessCmdKey.
DADavidFebruary 17, 2003 02:23 PM
You mean I have to create my own control type by inheriting from one of theirs?
RPRamesh Praveen Syncfusion Team February 19, 2003 06:30 AM