Solved

OCX versions problem

Posted on 2001-08-02
10
257 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
Comment Utility
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
Comment Utility
This may get a control in use error

<Ping> outta curiousity
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 50 total points
Comment Utility
0
 

Author Comment

by:ashraf_t
Comment Utility
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
Comment Utility
try to select  Upgrade ActiveX Controls property, close vb and reopen your project.

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Expert Comment

by:Carignan
Comment Utility
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
Comment Utility
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 

Author Comment

by:ashraf_t
Comment Utility
Thanx emoreau  just another onething , how to use this upgrade tools , is it safe?
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
Thanx a lot
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now