When you run an application which was created in Visual Basic 6.0, the following error message may occur and the program terminates.

Component ‘RICHTX32.OCX’ or one of its dependencies not correctly registered: a file is missing or invalid.

This happens if the program uses Rich TextBox ActiveX Control (RichTx32.ocx), but does not include the ActiveX file in the setup package.

To resolve the problem, download RichTx32.zip. Unzip the archive and extract the file RichTx32.ocx to the Windows\System32 folder.

Note that the VB6 run-time distribution package from Microsoft does not include the RichTx32.ocx ActiveX Control.

Registering the OCX file

If you still receive the error, register the RichTx32.ocx module using the following command (from Start, Run dialog):

regsvr32.exe %systemroot%\system32\RICHTX32.OCX

You should see the message DllRegisterServer in C:\WINDOWS\system32\RICHTX32.OCX succeeded. after running the above command.


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

6 Comments

  1. Sharissa H.
    said this on Monday, July 1st 2013 5:57 pm

    Windows 7 x64 solution (COMPILED):

    Instead of extracting to system32, extract to syswow64.

    Instead of using the run window, go to accessories -> cmd.exe and right click on it. Run as administrator. Put in the following command:

    regsvr32.exe %systemroot%\syswow64\RICHTX32.OCX

    and you should get the success message.

  2. Michael
    said this on Sunday, October 21st 2012 3:38 am

    Me too “the module cant load”

  3. said this on Sunday, May 29th 2011 4:41 pm

    For Windows 7 64bit save to C:\Windows\syswow64\ folder

  4. Tech guy
    said this on Monday, November 29th 2010 11:34 am

    Hi,

    While running an application which was created in Visual Basic 6.0, an error message such as ”Component ‘RICHTX32.OCX’ or one of its dependencies not correctly registered: a file is missing or invalid.” may occur and the program terminates.

    You can use the link: http://www.completepcpedia.com/fix_error_component_RICHTX32.OCX.html

    and easily fix this error.

    Thanks and Regards.

  5. WU621
    said this on Friday, November 12th 2010 12:02 pm

    For 64 bit O/S take a look at the bottom of the following thread, it worked for me.

    http://social.answers.microsoft.com/Forums/en-US/addbuz/thread/0b291108-c0c6-4d4b-a66d-358f1eb175b3?prof=required

  6. Mikael
    said this on Wednesday, August 4th 2010 1:24 am

    it cant register “the module cant load”

Leave a Reply