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
LVL 30
Michael PfisterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy PooleCommented:
Is this a windows or .net application?
0
Michael PfisterAuthor Commented:
A WindowsForms application/ .NET 4
0
Randy PooleCommented:
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?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Michael PfisterAuthor Commented:
Not ListBox, but ListView, sorry, my mistake
No 3rd party involved
0
Randy PooleCommented:
I researched it, and do not see a way to do it. Sorry..
0
Michael PfisterAuthor Commented:
Do you know a 3rd party control that could do it?
0
Randy PooleCommented:
Sorry I do not.
0
Randy PooleCommented:
What you could do is if you use the listview in details view then you could set checkboxes to false and add a subitem which is a icon and control your state that way..
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.