Results 1 to 3 of 3

Thread: Change default internet browser....

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    5

    Question 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!!!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    5

    Wink

    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
  •  



Click Here to Expand Forum to Full Width