Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by Worrow
Posted

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?

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...