I'm learning today how to reuse Internet Explorer's browser control (CLSID_WebBrowser) in my own application. I'm following the example from MSDN here.
My problem is, I don't like the "navigate sound", the annoying click sound file, that is played whenever you click on a hyperlink. I don't want the users of my application to hear it in my app. On the other hand, I don't like the idea of hacking their registry programmatically to disable the sound. What if they really do want to hear the sound when using Internet Explorer itself outside my app? I really don't want to annoy users by changing their preferences set for other apps.
I know how to use the control panel or registry editor to disable it on my computer globally for all IE instances, but is there a better way to disable it from my application, temporarily, so it is just disabled for my application and not for Internet Explorer itself, or other apps like mine that reuse the IE browser control?
I'd rather not hack the registry setting temporarily and then have to restore it later. I'd prefer some interface method that disables the sound just for one instance of the control. However, I can't find anything in IWebBrowser2 or related interfaces that will accomplish this. Any ideas?
My problem is, I don't like the "navigate sound", the annoying click sound file, that is played whenever you click on a hyperlink. I don't want the users of my application to hear it in my app. On the other hand, I don't like the idea of hacking their registry programmatically to disable the sound. What if they really do want to hear the sound when using Internet Explorer itself outside my app? I really don't want to annoy users by changing their preferences set for other apps.
I know how to use the control panel or registry editor to disable it on my computer globally for all IE instances, but is there a better way to disable it from my application, temporarily, so it is just disabled for my application and not for Internet Explorer itself, or other apps like mine that reuse the IE browser control?
I'd rather not hack the registry setting temporarily and then have to restore it later. I'd prefer some interface method that disables the sound just for one instance of the control. However, I can't find anything in IWebBrowser2 or related interfaces that will accomplish this. Any ideas?