Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip: How to prevent New Window in Web Browser control
Message
From
04/12/2008 14:55:13
Don Hagan
Federal Reserve Bank of Kansas City
Kansas City, Missouri, United States
 
 
To
03/12/2008 17:50:18
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01365420
Message ID:
01365531
Views:
13
I believe this will also prevent the new window. I don't know if it will deal with popups in the same manner as your method does.

In NewWindow3 in the first (visible) browser

thisform.xoleweb2.RegiserAsBrowser = .t.
ppdisp = thisform.xoleweb2.object
CANCEL = .t.


A second web browser control may not be required. I did a very quick test of not using a second browser and the new window didn't appear.

In NewWindow3 where ofrm is the containing form and obrowser is the browser control

ofrm.obrowser.RegisterAsBrowser = .t.
ppdisp = ofrm.obrowser.object
CANCEL = .t.


A related use of this is if you want to send any new window request to a specific form/browser control.

In NewWindow3 of the first form and where ofrmn is the 2nd form and obrowser is the browser control in that form

ofrmn.obrowser.RegisterAsBrowser = .t.
ppdisp = ofrmn.obrowser.object
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform