Microsoft Knowledge Base Email Alertz

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.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 201901 - Last Review: June 11, 2002 - Revision: 1.0

PRB: WebBrowser Control Application and Internet Explorer Sounds

This article was previously published under Q201901

On This Page

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: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

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:
    WebBrowser1.navigate "http://www.microsoft.com"
    					
  5. Save and compile your application.
  6. 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 (http://msdn.microsoft.com/workshop/browser)

APPLIES TO
  • Microsoft Internet Explorer 4.0 128-Bit Edition, when used with:
    • Microsoft Windows NT 4.0
  • Microsoft Internet Explorer 4.01 Service Pack 2, when used with:
    • Microsoft Windows NT 4.0
  • Microsoft Internet Explorer 4.01 Service Pack 1, when used with:
    • Microsoft Windows NT 4.0
  • Microsoft Internet Explorer 4.01 Service Pack 2, when used with:
    • Microsoft Windows NT 4.0
Keywords: 
kbinetdev kbwebbrowser kbprb KB201901
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate