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?
LVL 9
william007Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

danaseamanCommented:
Not that I know of but if you close your project and reopen it you should get the control that is currently registered.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ComputronCommented:
You may be able to rename one of them, register it and have both at your disposal.
0
Leo EikelmanDirector, IT and Business DevelopmentCommented:
Why would you want to do this?  It is basically bad programming.  

Register all your components before starting the application.

Leo
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ptan218Commented:
#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
0
Leo EikelmanDirector, IT and Business DevelopmentCommented:
or... don't load your dll while the application is open (because it's a bad practice) and just open your application once your dll is loaded and use the newly loaded component.

Leo
0
william007Author Commented:
Thanks:-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.