I would like to disable a webbrowser sound but i don't think it's possible so i saw that it was possible to disable an application sound on systems higher than win xp, now i just need to know how and i can't find it!
Current code :
Form.ActiveForm.Hide();
webBrowser1.ScriptErrorsSuppressed = true;
try
{
webBrowser1.Navigate(args[2], null, null, "User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Xbox; Xbox One)");
}
catch (Exception ex)
{
Environment.Exit(0);
}
i don't think there is a webrowser.noSound thing , also i used activeform.hide() to hide the webbrowser
First add this name space :
Now you can simply disable all audio output. Try these codes :
Update :
You can Read This someone else also answered this question.
Update 2 :
Read these two similar questions and disable the sound : Question1 Question2
Update 3 :
For IE7 and above you can use CoInternetSetFeatureEnabled :
Here is the Source
Update 4 :
How to mute windows sound