Solved

OCX versions problem

Posted on 2001-08-02
10
260 Views
Last Modified: 2011-10-03
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
Comment
Question by:ashraf_t
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 6344641
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
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6344706
This may get a control in use error

<Ping> outta curiousity
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 6344829
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ashraf_t
ID: 6344887
It is impossible to uncheck the old OCX inside the component because it is already used in the programe?!!!
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 6344893
try to select  Upgrade ActiveX Controls property, close vb and reopen your project.

0
 

Expert Comment

by:Carignan
ID: 6344930
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
 

Author Comment

by:ashraf_t
ID: 6344947
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 

Author Comment

by:ashraf_t
ID: 6344955
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6345109
I have used it many time without any problems. It only change the reference from VB5 controls to their VB6 equivalent.
0
 

Author Comment

by:ashraf_t
ID: 6346783
Thanx a lot
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question