Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Common Controls V5.0 SP2 in MSAccess 2003 ?

Posted on 2004-08-17
9
Medium Priority
?
460 Views
Last Modified: 2013-12-26
I am writing a database in Access 2003.  I am using the Microsoft treeview control v.50 SP2 and the corresponding imagelist control.  

I put it on a clean Windows XP / Office 2003 machine and the treeview control is not there.  

In the code window, I went to the references and the Microsoft common Controls V5.0 SP2 was ticked, but listed as missing

Can anyone tell me which DLL/OCX etc  I need on the destination machine and how to register it/them.  

Is there a download that will install these controls for me, or do I need to drag a file from my dev machine??

Any help would be appreciated
0
Comment
Question by:johnnyboyleeds
[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
  • 4
  • 2
9 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 11819457
the controls are found in the three files:

c:/winnt/system32/mscomctl.ocx
c:/winnt/system32/mscomct2.ocx
c:/winnt/system32/comct332.ocx

you should be able to register these files directly (using REGSVR32) or else, open Access in design mode, open any form in design mode, click on Tools/ActiveX Controls, then choose the Register button, and navigate to the indicated directory, locate the file(s) and register them.

AW
0
 

Author Comment

by:johnnyboyleeds
ID: 11819543
Am I allowed to distribute these files?
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 11820253
I would tend to doubt it.  They are NOT provided with MS Office, and you generally should NOT rely on them being present on any other system that you plan to distribute your MDB to.  You possibly have them present on your development box because you also have VB 6 (Visual Studio) on that box - (just a guess).

I try to avoid using non-standard controls in an Access app, for precisly this reason - by that I mean controls that are NOT part of the normal Access/Office installation.

AW
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:johnnyboyleeds
ID: 11832439
Thanks for your help, but I was still left looking for answers.  

After a bit of digging. I have found out the that common controls v5.0 SP2 actually consist of these files:

c:\windows\system32\comctl32.ocx
Not this c:\windows\system32\mscomctl.ocx
Not this c:\windows\system32\mscomct2.ocx
c:\windows\system32\comct332.ocx
c:\windows\system32\comctl32.dll

The two others are actually the v6.0 files

The two ocx files are wrappers for the dll.  

Windows XP and Office 2003 does not have these files registered, in fact a couple of them are missing.  

They come with Visual Basic and Office developer amongst other things and I believe that they can be re-distributed (as I found an MS download containing them) as long as it is redistributed intact - with the readme etc.  

You need to register the two OCX files.  The DLL doesn't need registering (in fact it won't register)

regsvr32 path\comctl32.ocx
regsvr32 path\comct232.ocx

This then allows you to use the v5.0 controls.  

This is an issue for some people as the way the nodes are added to the treeview is different between the versions and substituting the newer treeview control would mean recoding - as well as replacing the imagelist too.  

0
 

Author Comment

by:johnnyboyleeds
ID: 11890491
How do I cancel this and get my points back as I have answered it myself?
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12870024
Closed, 125 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Suggested Courses

704 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