PDA

Click to See Complete Forum and Search --> : How to get rid of the 'click' sound when a webbrowser navigates?


vbDan
Aug 30th, 2000, 05:40 AM
Does anybody know how you can prevent your webbrowser
to make that 'click' sound when it navigates?

And is it possible to prevent pictures from being loaded
as well with the webbrowser?

Thanks in advance

Aug 30th, 2000, 06:13 AM
No and kind of.

There is no way to get rid of the clicking sound, it is part of IE and you probably won't find a way.

You can load a page, and then wait a second or to and use Webbrowser1.Stop. This won't stop the pictures from loading completely, but it will stop the page from downloading.

What you are trying to do is almost impossible (you may want to cross out that almost).

vbDan
Aug 30th, 2000, 07:39 AM
Thanks, too bad I will have to keep hearing the clicks :(

Clunietp
Aug 30th, 2000, 09:59 AM
the click sound is from the START NAVIGATION event. You can change or disable it in the Windows control panel, in Sounds and Multimedia

Aug 30th, 2000, 12:17 PM
Perhaps you can do that Clunietp. But it can't be disabled through the Webbrowser with code in VB.

Oh, he wants to disable it for himself, didn't know that.
But vbDan, you could always turn your sound off if all else fails.


[Edited by Matthew Gates on 08-30-2000 at 01:20 PM]

vbDan
Aug 31st, 2000, 03:50 AM
Actually; I wanted my application to be able to navigate
without having to hear the click. My application has to log on to a site which is probably placing cookies. I wasn't able to log on using Winsock (can't place the cookies), so I am using the WebBrowser control.

I just found out that when you navigate while the WebBrowser control is not visible you don't hear the clicks, so there is a way to work around the problem :)

Thank you both for your help!

[Edited by vbDan on 08-31-2000 at 06:30 AM]

new_money
Mar 1st, 2001, 05:20 PM
As far as I can tell, this works for the clicking problem, but then you can't get anything from the Webbrowser control.

That does seem a little odd you can't browse to a page while the Webbrowser Control is not visible.

JoshT
Mar 2nd, 2001, 06:44 AM
On WinNT, the wave for the "click" is set under HKCU\AppEvents\Schemes\Apps\Explorer\Navigating\.current, or around there somewhere. So your app could remove the registry string on startup and restore it on unload, or just nuke it altogether.

Josh

vbDan
Mar 2nd, 2001, 08:37 AM
Thank you, JoshT.

I don't use NT, but perhaps Win98 does the same. I will try to find out.

New-Money:

I don't really have to see the page. I only need to send a username and password and after i've logged on i need to send some information to another page.

The problem is that when you log on you get a cookie, and I don't know how to set that cookies with WinSock (API). So I use the Webbrowser control which sets the cookies for me. The only problem with that was that I heared a clicking sound when I navigate.

So in my case I can set the control to invisible :)

new_money
Mar 2nd, 2001, 09:24 AM
Yep, I found the RKey yesterday, and it is the same address as the NT RKey. I'm a very happy camper now.