Listview in Vista['ding']

Worrow

Regular
Joined
Jul 10, 2003
Messages
68
Hi,
I got a form with a listview and a button [compiled in VS2008].
In Xp, it works normal. But running under Vista, whenever I mouse click,key press inside the listview, I got a 'ding' sound. It becomes very annoying when using cursor key to go through the list. Anyone know how to stop the sound effect(beside turn down the volume)? Thanks in advance.
 
Last edited:
Are you catching any events from the listview?

I may know what you're talking about, if you are executing e.handled = true on the keydown or mousedown events.

I had a similar problem with textboxes. I wanted to handle the return button. When I handled the keypressdown and did e.handled = true from there, I got the beep.
The solution was to create a global bool, then have the keydown event set the bool to true, then handle the keypress arg to check if the bool is true, then set the e.handled = true in that event.

BTW, I really doubt this is a Vista specific problem. Perhaps the sound doesn't work on your XP box?
 
That Xp machine is fine. I didn't modify any default sound effect beside turned off navigation. I too was trying to use e.handled = true but without any luck. The default beep sound is still there in Vista. As long as I pressed any key which causing the selection change[cursor key, page up/down] inside the list, the 'ding' comes.

Thanks for your suggestion.
 
Back
Top