I can't remove a component in a vb6 program


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
    Posts
    23

    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
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Mar 2009
    Location
    Italy - Breganze (VI)
    Posts
    120
    - 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, 09: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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