Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Web Browser from project

    I am writing a vb6 project that needs to have a user move to a web browser. Is there any way to start off IE but send it to a predetermined page rather than the default home page? I would rather use IE than the VB web browser form as the users will not be experienced and so need the familiar buttons / interface available to them.
    Will i still use the command
    "Shell ("C:Program FilesInternet ExplorerIEXPLORE.EXE"), vbMaximizedFocus" or is there a better way?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Web Browser from project

    I need to figure this out, too. My first instinct is to rely on Windows to deal with the application and Shell it the file name. But then you probably don't have much control over window.

    When I get back to this project, I'm going to try just putting them together - program name space file name - to see what happens.

    There's a KB article for IE4 that lists <A target="_blank" HREF=http://support.microsoft.com/support/kb/articles/Q178/0/58.ASP>command-line switches</A>, but no examples of how to combine them with the file name.

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Web Browser from project

    Hi,
    Shell ("C:Program FilesInternet ExplorerIEXPLORE.EXE http://www.yahoo.com"), vbMaximizedFocus
    works from VBA (in Excel2k) so I guess it would work from VB6.
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cornwall, England
    Posts
    393
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Web Browser from project

    This works great , thanks. My only problem now is how to negotiate the frames on the web page![img]/S/grin.gif[/img][img]/S/grin.gif[/img]

  5. #5
    2 Star Lounger
    Join Date
    Feb 2001
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Web Browser from project

    I think you'd have more control over IE if you automate it just like Word or Excel.

    See


    <A target="_blank" HREF=http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/browser/webbrowser/reference/properties/application.asp>http://msdn.microsoft.com/workshop/c-frame...application.asp</A>

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •