none
VB6 "Components"  cannot "Apply" the "mscomctl.ocx". Error message "Object Library not registered".

    Question

  • Until now, I developed in VB6 on a Windows XP machine. Recently, I created a Virtual Machine with Windows XP OS, within my Windows 10 machine,  so that I can continue developing in VB6. However, ever since I've done that, I am having trouble with one "Component", "Microsoft Windows Common Controls 6.0 SP6". and the file name is "mscomctl.ocx", which generates an error message whenever I try to "Apply" it
    It is a very important component which controls all the text boxes and dropdowns in my forms. Being that it gives me an error message "Object Library not registered" I cannot open any forms.
    Please advise.
    Wednesday, February 08, 2017 1:42 AM

All replies

  • I seem to remember that file came with Microsoft Office. It would take me awhile to check for sure. Does your VM have Office? You may need to copy and register the file.

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Wednesday, February 08, 2017 3:20 AM
  • the file is registed

    Regsvr32 c:\windows\system32\mscomctl.ocx
    regtlib c:\windows\system32\mscomctl.ocx

    it still gives me an error message "Object Library not registered"

    Wednesday, February 08, 2017 4:44 PM
  • Hi Moshe Singer,

    This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    And your issue is more related to VB6. This link about vb6, please refer that:    

    http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier

    Thank you for participating in the forum activities.

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, February 09, 2017 3:14 AM
    Moderator
  • There is no need to install the VB6 IDE under an XP Virtual Machine.  In fact it is better not to. The VB6 IDE can be installed on Windows 10.

    Here is a utility to install VB6 on Windows 7/8/10  VB6 installer

    or you can install VB6 manually as outlined here VB6 installation instructions

    ---

    The ocx control should be in your Syswow64 folder (assuming you have a 64 bit PC), and registered manually.


    Microsoft VB6 programming support (VB6 Support StatementVB6 Programming IDE Installer)



    Thursday, February 09, 2017 4:52 AM