Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registering control in form load event
Message
 
 
À
11/02/2001 17:50:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00474843
Message ID:
00474963
Vues:
28
Andrus,
There is no problem registering the control in the form's Load event. I have one question however, why? You can add code anywhere in the application to register the control. You could do this during the initial launching of your application. The code could also check the registry for the particular entry in the HKEY_CLASSES_ROOT section and if it doesn't exist, register the control.

It just seems overkill to do it every time they enter the form.

Just my $0.02 USD.

>I have a activex control (free zipmaster ocx file for zipping and unzipping with span) in a form.
>
>In user computer, this control is unregistered.
>I added following code to form load event to register
>a control each time the form is loaded.
>
>Is it OK to register activex control in the load event of the form where
>this control is used ?
>
>* form load event code:
>sys(2333,0)
>DECLARE INTEGER DllRegisterServer ;
> IN ZipM2X.OCX ;
> AS __DllRegisterServer__
>
>if __DllRegisterServer__()!=0
> messagebox( 'Zipmaster registratino fails' )
> nodefault
> return .f.
> endif
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform