C# 2010 ListView control with checkboxes reaction to space bar
Posted on 2014-07-28
I have a form with a C# ListBox control containing a list of strings, strings may contain space characters.
When I create the ListBox without "CheckBoxes" everything works fine, a user can type parts of the string and the selection bar within the listbox will move to the item corresponding to the string he's typing. Typing strings with spaces will move to the corresponding item as well.
As soon as I set the CheckBoxes property to True to add a checkbox column, the behaviour changes and the space bar will toggle the checkbox now.
I need the checkbox, any simple way to return the listbox to the same scroll behaviour as it was without the checkbox