Hi,

I am writing an activeX UserControl in vb6 which contains a Webbrowser control. The control has a GetURL() function that returns the WebBrowser.locationURL property.

When I reuse this user control in an EXE project the GetURL() function returns the url of the active Windows. (Scenario 1)

When I reuse this user control in a webpage using a cab file this function only returns the url to which I first navigated. (Scenario 1)

I try to retrieve the current URL from the Webbrowser control in scenario 2.
So I can send it to the db and process it.

I alos tried the documentCompleted event of the Webbrowser control but also this is only fired in Scenario 1.

Can someone help me with this ?

Thanks !