Make a note of the folder in which the Comctl32.ocx is i > right click the Comctl32.ocx file and delete itStep 3 - Manually Replace The Comctl32.ocxFileIts often the case that Comctl32.ocxwill either be corrupted, damaged or just not have the necessary permissions for use on your system. Select Local Hard Drives from the Look in drop down list. Type Comctl32.ocx in the All or part of the file name box. Search Files Click Start > then click Search.
Open the command prompt Click Start > Run Type the following command without quotations: regsvr32 -u comctl32.ocx If you get a message saying DLL is not registered press OK.2. The most effective way to ensure this does not cause any errors, is to delete the file and re-register it on your PC. Unfortunately, this file often becomes damaged, leading Windows to show the Runtime 7 error. Once you press enter a confirmation box will appear acknowloging that the process was successful.Step 2 - Unregister And Delete Comctl32.ocx FileComctl32.ocxis an essential file used by Windows to control various Visual Basic components on your PC. Type regsvr32 /u fm20.dll (again without quotations). Navigate to the exact location of the DLL. Type cmd in the box (without the quotation marks). A DLL file is a file that contains different functions, which are mostly used across multiple applications and sometimes these can brake causing one of the applications to show error messages. Heres what you should doHow To Fix Runtime Error 7Step 1 - Remove the FM20.dll file From Your ApplicationIf you have coded a program using Visual Basic to use the FM20.dll (Dynamic Link Library) file then you should remove it, the reason being is that it might cause some conflictions. Fortunately, you can fix the Runtime Error 7 by removing the FM20.dll file from your application and then unregistering the comctl32.ocx file on your PC. This file is only used within Visual Basic, and the reason why it shows errors is thanks to the way it is not supported by Visual Studio or other programming interfaces on your system. The FM20.dll file is used by Visual Basic to help encode various features and settings inside the programs you create. To fix this error, you should follow the steps below:What Causes Runtime Error 7?Runtime Error 7 normally shows in this format:Runtime Error 7: Out of MemoryThe error message above is caused by the FM20.dll file being corrupted or damaged.
How To Fix Runtime Error 7The Runtime error 7 is caused by a conflict inside Visual Basic encoded programs.If you try to open the BoundText property of a Data Combo in Visual Basic code after you scroll down the list of elements in its list portion until the currently selected element is no longer listed, the following error message may be displayed:Runtime Error 7: Out of MemoryAlthough the error message has appeared, you may find that there is no actual loss of memory and the system behaves consistently.