Link to home
Start Free TrialLog in
Avatar of Michael Pfister
Michael PfisterFlag for Germany

asked on

C# 2010 ListView control with checkboxes reaction to space bar

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
Avatar of Randy Poole
Randy Poole
Flag of United States of America image

Is this a windows or .net application?
Avatar of Michael Pfister

ASKER

A WindowsForms application/ .NET 4
Hmm, I see a listbox control but with no 'checkboxes' option, I also see checkedlistbox control. Are you using one of these  MS common controls or a third party control?
Not ListBox, but ListView, sorry, my mistake
No 3rd party involved
I researched it, and do not see a way to do it. Sorry..
Do you know a 3rd party control that could do it?
Sorry I do not.
ASKER CERTIFIED SOLUTION
Avatar of Randy Poole
Randy Poole
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial