When you attempt to run a program created using Visual Basic (classic VB) on a Windows 11/10 computer, the following error may occur:
Run-time error '339': Component 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid
Let’s see how to fix this error on any version of Windows, including Windows 11.
Note: There are two versions of the Microsoft Windows Common Controls. Comctl32.ocx contains Windows Common Controls 5.0 and was included with Microsoft Visual Studio 5.0. Mscomctl.ocx contains Windows Common Controls 6.0 and was included with Visual Studio 6.0.