PRB: WebBrowser Control Application and Internet Explorer Sounds

ID: Q201901


The information in this article applies to:


SYMPTOMS

You cannot change or disable the usual Internet Explorer sound cues that become associated with your application, when hosting the WebBrowser Control in an application, without changing the ones for Internet Explorer itself.


CAUSE

The documentation states you can use the sounds tool in the Control Panel or certain registry keys to disable or change the sounds for any application. However, since the WebBrowser Control inherits the standard Internet Explorer, these methods do not work for any applications hosting the WebBrowser control.


RESOLUTION

The only way to turn off or change the sounds in your application is to turn them off or change them for Internet Explorer.

To disable or change the sounds for any application, you can use the sounds tool in the Control Panel. That is not a viable option when your goal is a simple uniform mass installation. In this case, you can modify the appropriate registry settings for your application.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

Each sound for a navigation event has its own registry entry. You can either change the name of the sound file played, or remove the filename to stop any sound being played for that event.

The keys are named in the following way


[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\APPNAME\SOUNDNAME\.Current] 
For example, [HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current] @="" would remove the sound cue for the Navigating event of Internet Explorer and your Web browser application.


STATUS

This behavior is by design.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Open Visual Basic and create a new .exe project.


  2. Select the Microsoft Internet Controls from the components.


  3. Click on the WebBrowser icon in the tool bar, and add it to the form.


  4. Double-click the form and fill in the Form_Onload with the following code:


  5. 
    WebBrowser1.navigate "http://www.microsoft.com" 
  6. Save and compile your application.


  7. Alter the sounds for Internet Explorer and see how it affects your control.



REFERENCES

For more information on hosting the WebBrowser control see MSDN Web Workshop section on Reusing Browser Technology

Additional query words:


Keywords          : kbInternet kbWebBrowser kbInetDev 
Version           : WINDOWS:4.0,4.01,4.01 SP1,4.01 SP2,5.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 8, 1999