I need to use an existing IE window which already has a specific url and
re-use that window for a new URL.
Example:
One open IE window has the following in its Address Bar:
http://www.vbcity.com/forums/search.asp?mode=doit
The window title is:
vbCity/DevCity.Net Forums :: Search for - search find window- Microsoft
Internet Explorer
I want to re-use this window to display a new URL. My code to find this
window is:
Friend Sub FindWindowHwnd( ByVal strTitle As String)
' Get the target's window handle.
Dim target_hwnd As Double = FindWindow(vbNu llString, strTitle & "*")
If (target_hwnd = 0) Then
MessageBox.Show ("Error finding target window handle")
Exit Sub
End If
MessageBox.Show (target_hwnd)
End Sub
I will call the window like this:
Call FindWindowHandl e.FindWindowHwn d("VBCity")
So how do I use the window's Hwnd to send it a new URL?
--
|
+-- Thief_
|