Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip: How to prevent New Window in Web Browser control
Message
De
04/12/2008 14:55:13
Don Hagan
Federal Reserve Bank of Kansas City
Kansas City, Missouri, États-Unis
 
 
À
03/12/2008 17:50:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01365420
Message ID:
01365531
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform