Solved

Identifying controls from OCX used in project

Posted on 2002-03-14
1
148 Views
Last Modified: 2010-05-02
I have a reasonably large project which uses the threed32.ocx.

I'd like to find out which of the controls from this OCX are on what forms.

I can identify which forms have the OCX by scanning the frm files for the threed32.ocx but I'm not sure how I can identify occurences of each associated control on the form.
0
Comment
Question by:colindow
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 75 total points
ID: 6863911
One dirty way would be to unregister the threed32.ocx, and then open the project and all it's forms. you will get errors and log files around. Then close the project (with NOT saving any of the files), register the threed32.ocx, and reopen the project to ensure that everything is still fine. You can collect the <yourform>.log files to see which controls are in threed32.ocx.

Other option (which takes MUCH MORE time):
you could develop some code reading the .frm files, and comparing the lines where controls are "defined" on the form which ocx they would come from. This list could be either compiled manually, or by code using the typelib objects... but i think that is for some hourse of coding, while my first suggestion is done in "seconds"...

CHeers

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net 2008 2 60
VBA open file from excel cell 4 42
How to edit the macro code to limit the number of characters when creating worksheet tab name 5 49
Advice in Xamarin 21 80
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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

831 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