How to disable navigation sound in webbrowser control

User kill211 does not like the click sound when he calls WebBrowser.Navigate. He wonders if there is a way to disable it without modifying HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating, which has effect on other applications.

Unfortunately, the API for disabling sound is introduced in IE7. The FEATURE_DISABLE_NAVIGATION_SOUNDS feature can be toggled using registry or the CoInternetSetFeatureEnabled API.

Update: A good news is that in IE9 beta, the navigating sound is disabled by default. It helps the users who want to listen to music while navigating. For the visual impaired users, the sound can be turned on in accessibility options.

The PlaySound API is still available for the users who want to play the click sound themselves, I am not sure why it could be useful though.

Black history: some old theme software overwrites the start.wav file instead of changing the click sound file name in HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating. This can cause IE6 to hang. (The IE team call the article “Internet Explorer Navigation Sound Update”, which seems to follow the tradition of choosing confusing article titles such as WebApp.exe Enables User to Move WebBrowser Ctrl for an code example that enable navigating to folders in the webbrowser control)

About Sheng Jiang 蒋晟

Microsoft MVP in Visual C , 2004- Forum moderator of the Visual C and .Net forums on CSDN Forum moderator of Chinese forums on Microsoft's MSDN forums
This entry was posted in enmsdn, Microsoft, Visual C++ and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s