开发者

Remove the "click" sound from Winform WebBrowser?

开发者 https://www.devze.com 2022-12-25 19:24 出处:网络
Does anyone 开发者_开发问答know how to remove the \"click\" sound you get when navigating to another page, when using a WebBrowser on a WinForm? I would have thought they would have included an option

Does anyone 开发者_开发问答know how to remove the "click" sound you get when navigating to another page, when using a WebBrowser on a WinForm? I would have thought they would have included an option to choose whether you want it enabled, but they didn't.


I know it's a bit late, but here's the solution I used:

I used this link which Jørn Schou-Rode suggested in the comment. It worked perfectly for me and didn't require any messing around in the control panel, which is great if you want it to be the same for each user that uses the program.


It's a sound option that's only available from within the Windows Control Panel:

Control Panel > Sounds and Audio Devices > Sounds > Start Navigation

Set the sound to (None)

EDIT: I realized that you might be asking if there's a programmatic way of disabling the click sound; the answer would be No. Like the other poster said, the WebBrowser control uses the IE engine, so therefore it uses IE's settings.


I suspect you'll find this is the IE browser's navigate sound, as set in Windows' sound options. Because the control uses the IE browser engine it's possibly not something you can change programmatically without affecting the user's settings.

You could prove this simply enough by fiddling in control panel...

0

精彩评论

暂无评论...
验证码 换一张
取 消