removing components
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: removing components

  1. #1
    Join Date
    Nov 2005
    Posts
    95

    removing components

    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?

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,813

    Re: removing components

    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.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Nov 2005
    Posts
    95

    Re: removing components

    I found it!! An unused one was buring under a frame....had to drag all these frames around to look.

    Is there a better way---a search function to do the looking? This way seemed rather ridiculous
    Last edited by vbcandies; November 27th, 2011 at 09:53 AM.

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,813

    Re: removing components

    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.
    Always use [code][/code] tags when posting code.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center