I use Javascript to click a link in the webbrowser control. But I don't want to hear IE's "click" sound.
Is there any way to do this?
P.S.
- I don't want to change system settings.
- I've seen this one (HowTo Disable WebBrowser 'Click Sound' in your app only) but
Document.Write
is not an option for me.
Imports System.Runtime.InteropServices < Imports System.Security
qxxx use those imports
I have wrapped this functionality into a ready-to-use class. I used part of the information from the selected answer and the MSDN reference.
Hope this is useful to someone.
Usage
URLSecurityZoneAPI
I cant make it work on VB.net, tried this:
...
Edit: Found the problem, its within declaring. True one is:
Thanks to dmex at http://msdn.microsoft.com/en-us/library/ms537168%28VS.85%29.aspx
Your only other option is to mute the computer, but that's hardly a good idea...
For IE7 and above, you can use this:
using the following DLL imports
(found on the MS feedback site as a solution from the WPF team: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=345528&wa=wsignin1.0)
So this is known limitation then...
Is there any dirty hack / workaround such as hooking sound calls of the ActiveX and disabling them (Not sure if it's possible without going too deep)