|
-
May 21st, 2001, 02:37 PM
#1
Thread Starter
New Member
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
-
May 21st, 2001, 10:32 PM
#2
Good Ol' Platypus
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)
-
May 22nd, 2001, 08:20 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|