• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

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
0
ashraf_t
Asked:
ashraf_t
1 Solution
 
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
 
Éric MoreauSenior .Net ConsultantCommented:
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now