Open the Sounds and Multimedia Control Panel applet (go to Start, Settings, Control Panel, and double-click Sounds and Multimedia).
Select the Sounds tab.
Under Sound Events, navigate to the Internet Explorer section.
Navigate to Start Navigation and remove the sound for this event by selecting "none."
Click OK.
OR
Start the registry editor (e.g., regedit.exe).
Navigate to the HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating subkey.
Select the .current subkey.
Select Delete from the Edit menu.
Click Yes in the confirmation dialog box.
http://social.msdn.microsoft.com/forums/en-US/winforms/thread/e72b37d2-d20b-4a59-8560-24a10b17db97/
Supression of Click Sound on WebBrowser Navigate
Etiketler: ie click sound , webbrowser
webbrowser documentcompleted is raised more than once
çözüm:
webbrowser'ın readystate özelliği complete ise işlem yap.
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (webBrowser1.ReadyState == WebBrowserReadyState.Complete)
{
// do something
}
}
not: saatlerce bu sorunla uğraştım. algoritmamda bir hata olduğunu düşünüyordum. sonra "acaba bu bir bug olabilir mi" diye google'a danıştım ve aramam sadece ve sadece "webbrowser documentcompleted" sözcüklerinden oluşuyordu. çıkan sonuçlardan dördüncüsünde yanıtı buldum. ve bu durum bana şunu düşündürdü:
eğer msdn'den webbrowser kontrolünü veya onun documentcompleted event'ini incelemiş olsaydım, bu bilgiye zaten ulaşmış olacaktım. hazıra konmaya çalışmak işte bazen tam tersine böyle zaman kayıplarına yol açıyor. bu da bana ders olsun =/
not2: webBrowser1_DocumentCompleted event'inde exception oluştuğunda uyarı verilmiyor. try catch ile kendin yakalamalısın.
Etiketler: ders olsun , documentcompleted , msdn , readystate , webbrowser