Results 1 to 5 of 5

Thread: Easy way to open a browser in VB6?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    1

    Easy way to open a browser in VB6?

    Anyone know an easy/beginners way to open a browser in VB6 using simple code and no ocx or dlls? Must work 100%!

    Someone pointed me to this link before:

    http://www.planet-source-code.com/vb...29557&lngWId=1

    But I couldn't understand where to put the code!

    Many thanks, Gaz.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Easy way to open a browser in VB6?

    Moved from FAQ forum

    Welcome to VBForums!

    The code you linked to is very similar to this FAQ thread, which I think is worded better - and should answer your question.

  3. #3
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: Easy way to open a browser in VB6?



    You mean internet explorer:

    VB Code:
    1. 'To open internet explorer
    2. shell "C:\Program Files\Internet Explorer\iexplore.exe",vbMaximizedFocus
    3.  
    4. 'To open internet explorer with url
    5. shell "C:\Program Files\Internet Explorer\iexplore.exe http://vbforums.com",vbMaximizedFocus

    To open a web page with its default browser without specifying the browser name or path use the link provided by SI
    Last edited by cssriraman; Jun 7th, 2006 at 07:57 PM.
    CS

  4. #4
    Member Max bayne's Avatar
    Join Date
    Jul 2006
    Location
    Egypt
    Posts
    59

    Re: Easy way to open a browser in VB6?

    very good man

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Easy way to open a browser in VB6?

    Bad juju hardcoding it for IE..... personaly I'd say use the ShellExecute, point to the URL you want to open, and let the user's default browser launch....
    But that could be just me.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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