Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

VB6 Question

I have an old, but important, piece of software that I need vb6 to make changes to.  I am running xp still for this purpose (does vb6 run on Windows 7?).  Recently when I try to open vb6 I get this error message: Object library not regisitered.  The form that is generating this error has the following log file entry:  

Line 19: Class MSComctlLib.ProgressBar of control prgDumpProg was not a loaded control class.

Why would this start happening all of a sudden and how do I resolve it?  Note that the compiled application (exe file) runs fine.
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Yes, VB6 programs can be developed and run on Windows 7 but you may need to make changes concerning where you store files, etcetera due to new security features in Windows 7.

Check component "Microsoft Windows Common Controls 6.0 (SP6)" in Project|Components
Is it selected? Does it say: "MISSING" ?
Avatar of Bob Schneider

ASKER

Looks like I have a picture box that I am using as a progress bar.  Here is the problem:

    prDumpProg.Visible = True      'show progress bar
    prDumpProg.Min = 0
    prDumpProg.Max = UBound(sBibArray, 2)
    prDumpProg.Value = 0

It doesn't like the *.Min  could that have been deprecated?  Basically it says set it to 0 and show the progress from there.

Any help on this...and thanks a ton for your patience!
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am certain you are correct but I have not made any (intentional) changes to the program regarding this picture box since I compiled it the last time.  I will see if I somehow changed the progress bar to a picture box but, again, no idea how that would have happened.  I will let you know.  At that point I will follow up on your other/earlier suggestions.

Your help is much appreciated!!!
You're welcome and I'm glad I was able to help. BTW it's standard operating procedure for VB6 to substitute pictureboxes for missing controls.

My profile contains links to some articles I've written that may interest you.
Marty - MVP 2009 to 2012
Microsoft Windows Common Controls 6.0 (SP6)" in Project|Components is not checked.  When I check it, it says "Object Not Registered"