Solved

OCX versions problem

Posted on 2001-08-02
10
262 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

623 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