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
Solved

OCX versions problem

Posted on 2001-08-02
10
259 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 50 total points
ID: 6344829
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

860 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