Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

WebBrowser Control won't/can't Navigate to Local Folders (in certain situations)

$
0
0
Hello all, I am new to this forum. So this is by far the weirdest problem I have ever encountered while programming in VB... I am using VB6 and created a Web Browser application. Originally I created it in Windows XP, but I made some minor changes so that it works in Windows 7 as well. However, for some reason, the web browser control cannot navigate to any local folder (such as C:\, etc...) after visiting www.google.com. It opens any local folder no problem if I have not visited Google in that particular tab (each tab has a unique browser), but if I visit Google it will no longer do so. It doesn't matter if I use it as my home page, visit it later, etc. Even if I open C:\ (for example), then navigate to Google, then hit the back button, it will not go back. It doesn't give me any error, apparently it doesn't even try to navigate. The NavigateComplete and DocumentComplete events do not fire, and it does not leave the Google web page. Even if I visit Google, then go to a different page, then try to navigate a local folder it has the same problem. It seems to be only in Windows 7, when I run it in XP it works fine. And the strangest thing is, it actually did work for a short while a few days ago while I was working on the browser, it was working fine, both from the code and the old compiled version. However, once I compiled the version I was working on, the same problem arose again, and it would no longer work (either from the code or the compiled version - the same code that it was working from a few minutes earlier).

If I navigate C:\ or any local folder in a new window, it works fine, and it works fine as long as that particular browser has not visited Google in that particular session. However, once I visit google from a browser during a session, it won't open any local folder. Has anybody had this problem or experienced anything similar? I am at a complete loss as to what the problem might be.. I have tried using the Navigate2 method instead of Navigate, tried a new test project with just a webbrowser control and a text box, and I still have the same issue. Any help or suggestions would be greatly appreciated... thank you.

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>