DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: I can't remove a component in a vb6 program

  1. #1
    Join Date
    Jan 2009

    I can't remove a component in a vb6 program

    I have a component called starvbkit.ocx as component in a vb6 program.

    I have removed all lines from the program that are associated with this ocx. I turned the computer off and on and restarted the program.

    I have attempted to uncheck this ocx program in the component tab. I receive a "Can't remove control or reference; in use" message.

    Any suggestions?

    Bill Miller

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Then it is on one of your forms even though you might not be able to see it.

    How many forms do you have in this project?

  3. #3
    Join Date
    Mar 2009
    Italy - Breganze (VI)
    - open EACH form (.frm) of your VBP project using Notepad.
    - take a look on TOP of file.

    If there is a line like:

    Objects = "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}#x.x#x"; "starvbkit.ocx"
    (where 'x' can be a digit or a letter)

    then this form contains the OCX.

Similar Threads

  1. soft drink Vending machine program
    By divagoddess in forum C++
    Replies: 5
    Last Post: 08-14-2009, 03:12 PM
  2. run time error 13, vb6 & ms access
    By kheoyleon in forum VB Classic
    Replies: 2
    Last Post: 08-03-2009, 03:40 PM
  3. importing a text file into excel component in vb6
    By Spumbu1977 in forum VB Classic
    Replies: 4
    Last Post: 09-05-2006, 10:07 PM
  4. Prime number program to make go faster
    By divagoddess in forum C++
    Replies: 12
    Last Post: 05-07-2006, 10:55 PM
  5. Replies: 0
    Last Post: 10-27-2002, 10:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center