Results 1 to 3 of 3

Thread: Internet Explorer ActiveX Control

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    15

    Internet Explorer ActiveX Control

    I'm trying to use the same instance of an Internet Explorer control, but I'm having some problems.

    I can navigate to different pages using this control, but I want the ability to have IE become the active screen whenever I change pages.

    I'm using the following code to launch IE and navigate.

    Set ie = GetObject(, "InternetExplorer.Application")

    If ie Is Nothing Then
    Set ie = CreateObject("InternetExplorer.Application")
    ie.Toolbar = False
    ie.StatusBar = False
    ie.Navigate (SATSwebSite)
    ie.Visible = True
    Else
    ' double check to make sure the window is still open.
    HWND = ie.HWND
    If HWND = 0 Then
    Set ie = Nothing
    Set ie = CreateObject("InternetExplorer.Application")
    ie.Toolbar = False
    ie.StatusBar = False
    ie.Navigate (SATSwebSite)
    ie.Visible = True
    Else
    ie.Navigate (SATSSearchString)
    End If
    End If

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    IE.SetFocus (if there is such method) otherwise you must post a message to it to set it's focus.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    15
    There is no setfocus method. What do you mean about "posting a message" to it ?

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