Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shell.Explorer.2 (create new session)
Message
From
06/07/2010 16:50:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Shell.Explorer.2 (create new session)
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01471600
Message ID:
01471600
Views:
189
Dear All,

How can I create a create a New Session using Shell.explorer.2 as an object added to my form.

I have IE 8 installed.

Here is my code:
*---------- setting class library to frx2any.vcx
cOldClassLib = Set("CLASSLIB")
Set Classlib To "vatp.vcx" Additive

Thisform.AddObject("webx1","webx")

Thisform.webx1.Visible=.T.

Thisform.webx1.registerAsBrowser= .T.

Thisform.webx1.Top=0
Thisform.webx1.Left=0
Thisform.webx1.Height=630
Thisform.webx1.Width=this.Width
Thisform.webx1.Navigate("http://www.msn.com")

*---------- resetting back CLASSLIB
Set Classlib To &cOldClassLib
 
After I navigate to different links on MSN website,
I want to create a New Session. I tried this and did not work:
RELEASE webx1

Thisform.RemoveObject("webx1")

&& then I re-add object webx1 again using the above code.
The new webx1 has the same last page that the old webx1 had and not a fresh home page.

Any help?

Thanks

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform