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

x
?
Solved

Common Controls V5.0 SP2 in MSAccess 2003 ?

Posted on 2004-08-17
9
Medium Priority
?
469 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Suggested Courses

916 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