Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annoying click sound in TWebbrowser

Tags:

delphi

I'm using a TWebbrowser component in my Delphi app, whose content I load programmatically:

(aWebBrowser.Document as IPersistStreamInit).
                               Load(TStreamAdapter.Create(aMemoryStream))

On every Load the component produces an annoying click sound. Can this be disabled?
TIA

like image 756
stevenvh Avatar asked Mar 05 '09 08:03

stevenvh


2 Answers

Take a look at the CoInternetSetFeatureEnabled procedure in URLMON.DLL, as documented here. Enabling FEATURE_DISABLE_NAVIGATION_SOUNDS for your app will do what you need.

like image 78
Nick Bradbury Avatar answered Sep 23 '22 14:09

Nick Bradbury


This is a windows setting. I'm not sure your application should change that setting.

like image 36
Davy Landman Avatar answered Sep 22 '22 14:09

Davy Landman