Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX Interferes with Form Init Sequence?
Message
De
28/09/2001 15:42:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
ActiveX Interferes with Form Init Sequence?
Divers
Thread ID:
00562075
Message ID:
00562075
Vues:
77
Hi,

Does anyone know if some ActiveX controls interfere with the normal Init sequence in a form? It seems pretty clear in my head what is happening, but let me try to put it in words.

In my Init and Activate methods, I am creating and initializing some properties/objects. I am also resizing the controls, based on the size of the form. If I use no ActiveX controls, everything works just fine. But, with some ActiveX controls I place on the form, I start having problems. For instance, the form starts crashing in the Activate method when it encounters code referring to normal controls on the form. All of a sudden, the form says that the control is an "Unknown Member".

It seems as though the ActiveX control is interfering with the normal sequence of events, skipping instantiation of some of the controls (for example, a textbox) before I try to refer to them. Or it might be preventing some of the controls on the form from instantiating.

The two ActiveX controls causing problems are the Namo WebEditor control and the MS DHTML control. Another HTML editing control, from Ephox, doesn't cause this problem, nor do any of my other ActiveX controls.

I have changed AutoYield to .F. in the Load event of the form. I'm even using SYS(2333, 0), though I'll be darned if I know what that actually does.

I've tried stepping through the code, but I keep getting the dreaded C00000005 error everytime I do. But, that is another problem. So, for the time being, I'm left to try and decipher this problem without the debugger.

I was recently told to look at the July 2000 FoxPro Advisor tip, "Avoid VFP Bug in _SCREEN.ActiveForm". I tried the code, and it didn't help. I still get the error "Unknown Member".

I am using VFP 6.0 SP5 and Win2k.

Does anyone have any help to offer?

-Bri.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform