|
-
Jul 9th, 2001, 06:02 AM
#1
Thread Starter
New Member
Change default internet browser....
I added 'Microsoft Internet Controls' component to my VB project. I guess it use default internet browser to show pages and becaouse of that I have a problem...
The html page I want to load is IE compatible. I know how to see if IE is default browser, but if it's not.... How can I set it to be default (at program start) and than change it to how it was (at the end of program)???? PLease help!!!
-
Jul 9th, 2001, 07:01 AM
#2
The Microsoft Internet Controls or the Web Browser Control always uses Internet Explorer to show pages. Even if IE isn't the default browser. The user must have IE installed to be able to use an application that uses the Web Browser Control.
The license agreement doesn't allow you to distribute the Internet Controls by them self. The user must download and install IE him/herself before he/she can use your application.
But to answer your question:
To change the default browser you must edit the registry.
If you have a look in RegEdit under HKEY_CLASSES_ROOT you'll find keys named .htm and .html.
They point at an other key (htmlfile if you use IE as the default browser). Under the htmlfile key you'll find the shell\open\command key. You'll have to change that value to point out the path to IE.
See the articles section here on VB-World to find out how you edit the regestry thru code.
Best regards
-
Jul 9th, 2001, 09:56 AM
#3
Thread Starter
New Member
Thanks Joacim, you're right: it always uses IE... Ah, I just was toooo lazy to download Netscape at first place to try it...
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|