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?
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
After I do a
regsvr32 /u "C:\Program Files\Microsoft Office\OFFICE11\MSCAL.OCX"
regsvr32 "C:\WINDOWS\system32\MSCAL
(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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
#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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks:-)