Hello
I've using vb6 and must to remove the unused references in my project.I've tryed to uncheck it and then unregister it with regsvr32 -u...After this still appear in references window...
What shoul I do?
Many thanks,
Printable View
Hello
I've using vb6 and must to remove the unused references in my project.I've tryed to uncheck it and then unregister it with regsvr32 -u...After this still appear in references window...
What shoul I do?
Many thanks,
Welcome to VBForums :wave:
To remove them from your project you should not unregister them - simply untick them.
The list contains lots of items, and there is nothing you can do about that.. you just need to ignore the ones without ticks (when the references screen loads, all of the ticked items are at the top).
Welcome to VBForums Iulli.
If you want to remove all unused references for you app then click on Project\References.... As Si says all the references that are used will be shown at the top. The first 3 are needed by any VB6 app. If you try to untick those you will get a message that thy are needed. If you aren't sure which of the others are needed then just untick them one at a time and run all aspects of you app. If you get a message reference or variable not defined then that one is needed.
As Si says you don't need to unregister anything. If its not registered is won't show in the References or Components list.
The same goes for Components. If use Ctrl+T you can untick any components and if its in use you will be told. ;)
For controls, another handy tip is: Open the Components Window (Ctrl+T) then
press OK with the Shift Key down. This will remove all unused components.
Thanks for the tip VBClassicRocks.
In Project Properties Make tab there is a checkbox that says Remove information about unused ActiveX Controls but that doesn't remove anything and the Help button tells you nothing. ;)