Link to home
Start Free TrialLog in
Avatar of william007
william007

asked on

After registering OCX, how to "tell" VB program to refresh the Control?

For example Calendar control using MSCAL.OCX
If I have two version of MSCAL.OCX ie 8.0 and 11.0
Version 11.0 is under
"C:\Program Files\Microsoft Office\OFFICE11\MSCAL.OCX"
Version 8.0 is under
"C:\WINDOWS\system32\MSCAL.OCX"

After I do a
regsvr32 /u "C:\Program Files\Microsoft Office\OFFICE11\MSCAL.OCX"
regsvr32 "C:\WINDOWS\system32\MSCAL.OCX"
(To unregister Version 11.0 and register Version 8.0)

Is there a systematic way to "tell" VB program to refresh the Control in order to reflect the updated version?
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Computron
Computron

You may be able to rename one of them, register it and have both at your disposal.
Why would you want to do this?  It is basically bad programming.  

Register all your components before starting the application.

Leo
#1, Close the Visual Studio
#2. Start your project again
#3. Go to the Project | Components
#4. Uncheck the Calendar Control
#5. Then click BROWSE to select your new MSCAL.OCX
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of william007

ASKER

Thanks:-)