Results 1 to 5 of 5

Thread: How to remove unused references in VB6?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Posts
    1

    How to remove unused references in VB6?

    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,

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How to remove unused references in VB6?

    Welcome to VBForums

    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).

  3. #3
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: How to remove unused references in VB6?

    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.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

  4. #4
    Fanatic Member
    Join Date
    Mar 2009
    Posts
    804

    Re: How to remove unused references in VB6?

    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.

  5. #5
    PowerPoster Keithuk's Avatar
    Join Date
    Jan 2004
    Location
    Staffordshire, England
    Posts
    2,236

    Re: How to remove unused references in VB6?

    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.
    Keith

    I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width