Results 1 to 3 of 3

Thread: How can I change the URL of the Internet Explorer

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    12

    Question

    Hi all!

    I need to change the URL of a running Internet Explorer out of a Visual Basic programm. Can anyone help?

    Thanks!!!
    http://www.vbDirectX.de

  2. #2
    Guest
    Using the ShellExecute api function, it should change the already opened IE's URL address and if no IE is open, than it will launch IE and also navigate to the site.

    Code:
    Declare Function ShellExecute Lib "shell32.dll" _
    Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal _
    lpOperation As String, ByVal lpFile As String, ByVal _
    lpParameters As String, ByVal lpDirectory As String, ByVal _
    nShowCmd As Long) As Long
    
    Public Const SW_SHOWNORMAL = 1
    
    
    ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", vbNullString, "c:\", SW_SHOWNORMAL

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    12

    Thumbs up Thanks!!!

    Thanks for this really good and useful code snippet. now i can get my webbrowser to make what I want it to!!!

    THANKS
    http://www.vbDirectX.de

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