Handling Keystrokes in a ListBox

I think I must be going crazy.  I have a ListBox where I want "Ctrl-I" to do something special (go into "insert mode" with an inplace editor).  I can't seem to prevent the list box from not only processing Ctrl-I in a key event handler (I've done both KeyDown and KeyUp), but also searching and finding any text beginning with the letter "I".  I've tried setting e.Handled to true everywhere I can think of it (the form's key event handler, the ListBox's key event handlers, key press, etc. etc.) and I still can't stop the searching behavior!  The behavior itself is fine, but I can't imagine anyone thinking that Ctrl-keystroke also doing a search is intuitive behavior.  For one thing, Ctrl-S and Ctrl-P work as Windows expects.

What do I need to do   Help!

Jim Stanley



Answer this question

Handling Keystrokes in a ListBox

  • Handling Keystrokes in a ListBox