Link to home
Start Free TrialLog in
Avatar of Mark Epstein
Mark EpsteinFlag for United States of America

asked on

Trouble adding an active x component to a VB6 project

I have an app that I created years ago and ran on numerous machines from Win XP to Win 7 with no issues. This app contains a progress bar control. I am trying to open the project file on a win 10 64 Pro machine, but am getting an error message when the form opens:

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

I tried to add the component from the Project>components menu item in the project editor. A pop up to find the file comes up defaulting to the system32 directory, when I type the name of the control MSCOMCTL.OCX  in the file text box it shows up, but the file is not in that folder. If I click on it, the machine hangs. I then searched and found the correct file in the sysWOW64 folder and again tried to open it to add the component control. To my surprise, the machine again hangs...

I do not know what to do next to add this control. Any ideas???
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
SOLUTION
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
Avatar of Mark Epstein

ASKER

John:

The control is in the SysWow64 folder. Can you please give me the exact syntax to register using regsvr32 and just what and how am I unregistering and deleting everything else?

From my research reading the threads that Martin sent, I think you are on the right track - I actually reached out to the author of one of the posts in the link, but not sure if he is still around - that post was a few years old...
SOLUTION
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
All very helpful. Thank you very much!
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange MVE 2015
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017