Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Visual Basic Does Not Load .ocx File When You Start Visual Basic


Symptoms

When you attempt to open a new Visual Basic 6.0 project (such as a Standard EXE project), you receive the following error message:
Failed to load control image list mscomctl.ocx
When you click Continue in the dialog box, the Visual Basic integrated development environment (IDE) closes the application.

↑ Back to the top


Cause

When the Visual Basic IDE is being loaded, the control image list file Mscomctl.ocx does not load. This problem can occur when the the default temporary folder contains a large number of files (for example, more than 65,000 files).

↑ Back to the top


Resolution

Delete all temporary files in the default temporary file folder.

To locate your default temporary files, and then delete them, follow these steps:

  1. On the Start menu, click Run.
  2. In the Run dialog box, type %TEMP%, and then click OK.
  3. A window opens that displays your temporary files; select the files you want to delete.
  4. Press the DELETE key, click Yes to confirm the deletion, and then close the Temp window.
NOTE: You may receive a warning that any files that another program uses will not be deleted until you close the program that uses these files.

↑ Back to the top


More Information

Other files also may not load when Visual Basic IDE is being loaded, depending on the available space in the %Temp% folder.

↑ Back to the top


Keywords: kbprb, kb

↑ Back to the top

Article Info
Article ID : 304607
Revision : 1
Created on : 1/7/2017
Published on : 6/19/2014
Exists online : False
Views : 123