Link to home
Create AccountLog in
Avatar of oxygen_728
oxygen_728

asked on

VB.NET - ListView beeps when a letter-key is pressed - I want to cancel this behavior

I have a listview that beeps whenever I hit letter keys on the keyboard. I believe this is because the listview is attempting to locate an item in the listview that starts with the letter of the key being pressed, and when an item is not found, it beeps.

This is rather annoying for the purpose that I'm using the listview.

Is there some way to cancel this behavior?

perhaps it may involve canceling the behavior of the listview that causes a key-press to locate an item that begins with that key's letter.

Any tips?

Thanks
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Might me override the event "Enter" or "Keyup" and do nothing inside the event.
Avatar of oxygen_728
oxygen_728

ASKER

It seems i might need to override every key-press and do-nothing for all key-presses on the listview.

how would i do that?
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer