Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OCX versions problem

Posted on 2001-08-02
10
Medium Priority
?
266 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
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 200 total points
ID: 6344829
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Industry Leaders: 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

972 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