I have an running application which works on 60 computers on lan.
I upgrade my application by changing an exe file in server.
I need to add a new activex controls to it.
Users want only click in application icon and use it.
It is not possible to force users to make installations
again and again.
Also, some controls are reqired only rarery in some specific
forms.
For this reason I want a control to be installed only if form
which actually requires it will run.
You don't install full visual studio if you actually don't use it,
am i right ?
>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
Andrus