OCX versions problem

i have a programmes made using visual basic 5 , now i upgrade to visual basic 6 , the problem is there are 2 ocx files which are comctl32.ocx and comctl232.ocx i used them inside my programes these ocxs are version 5 i want to upgrade to the same files but version 6 the both 2 versions are still im my machine and my programe still using the ocxs version 5 how i can upgrade , thanx
ashraf_tAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
TimCotteeHead of Software ServicesCommented:
In your ocxs, bring up the components dialog, go down to microsoft windows common controls add the equivalent version 6.0 controls and uncheck the version 5 controls. Recompile and then use your activex controls.
0
 
Dave_GreeneCommented:
This may get a control in use error

<Ping> outta curiousity
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.

 
ashraf_tAuthor Commented:
It is impossible to uncheck the old OCX inside the component because it is already used in the programe?!!!
0
 
rkot2000Commented:
try to select  Upgrade ActiveX Controls property, close vb and reopen your project.

0
 
CarignanCommented:
if the emoreau answer does't help, you while have to do by hand.  It can be long if you project has many forms who use these controls.

Step 1
bring up the components dialog, go down to microsoft windows common controls add the equivalent
version 6.0 controls.

Step 2 Go to you forms, replace all the Version 5 Controls with the Version 6 Equivalent.  My procedure to do this, is

A) Add the new version 6 control
B) Rename the Version 5 Control
C) Give the the Old Version 5 control Name to the Versiion 6 Control
D) Delete the Old Version 5 control from you form

Step 3
Once you have done step 2 for all you version 5 controls in all you forms, bring up the components Dialog then uncheck the version 5 controls. Recompile and then use your activex controls

NB if you cant uncheck Version 5 controls is because you forgot one or more controls at step 2.

0
 
ashraf_tAuthor Commented:
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 
ashraf_tAuthor Commented:
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 
Éric MoreauSenior .Net ConsultantCommented:
I have used it many time without any problems. It only change the reference from VB5 controls to their VB6 equivalent.
0
 
ashraf_tAuthor Commented:
Thanx a lot
0
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.

All Courses

From novice to tech pro — start learning today.