Worrow Posted January 26, 2009 Posted January 26, 2009 (edited) 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. Edited January 26, 2009 by Worrow Quote
stumper66 Posted January 28, 2009 Posted January 28, 2009 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? Quote
Worrow Posted January 29, 2009 Author Posted January 29, 2009 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.