Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Control (OCX)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00089477
Message ID:
00089622
Vues:
29
>Does anyone know if there is a new Web Browser Control for VFP 5.0a. I tried to create a form with the installed Web Browser OCX and it bombs everytime. I am using IE4.0.

What a coincedence. I just this morning finished reading an article in FoxPro Advisor by Rick Strahl of West Wind Technologies. The subtitle is Browsing the Web with Web Browser Control. Either way I won't re-write the entire article, but these 5 steps might be helpful.

1. Make sure you issue SYS(2033) prior to using the Web Browser Control to disable Dual Interface support. Without this, VFP will crash when you drop the Browser onto a form.

2. Drop an OLE Container control onto a form.

3. Select Insert Control and choose Microsoft Web Browser Control.

4. (This is probably the one you need) Set the Refresh method of the control to NoDefault. Don't miss this step, or your form will bomb when it loads.

5. If you're planning to use the control in the runtime environment, add SYS(2333) to the form's load event. This disables Dual Interface support, which requires a system .dll that doesn't get installed with the VFP runtime.

Again, Rick Strahl is the author and deserves the recognition for this piece. One thing that bothers me is in one place he is using SYS(2033) to disable Dual Interface, and in the next place he is using SYS(2333). I haven't double checked these sys commands, but I would if I were you.

DJ :o)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform