I have a VB6 app that works, but I removed the common dialog controls from the form(s), along with the associated code. Now I want to eliminate it (OCX) totally from the project....
Under "components" trying to check-off the Microsoft common dialog control gives the message:
Can't remove control or reference; in use.
I've looked everywhere, but don't see the common dlg being used anywhere. I do a full search for dlg & cdl but come up empty...
how do I located where this component is supposedly being used (code or form component) so I can kill it off?
Check every form and see if the control is on them, it could be placed out of the visible area. You should be able to remove the reference once there is no instances of the control on any of your forms.
Well you can manually edit the VBP file in note pad or other text editor to remove the reference, save and then when you load the form where the control is in use you will get an error message since it was removed from the project file.
Bookmarks