Fix for RICHTX32.OCX Component Error when running a Program

richtx32.ocx error

When you run an application built using (classic) Visual Basic 6.0, the following error message may occur, and the program terminates.

richtx32.ocx error

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

(or)

Failed to load control 'RichTextBox' from RICHTX32.OCX

This happens if the program uses Rich TextBox ActiveX Control (RichTx32.ocx), but does not include the ActiveX file in the setup package. This runtime is not included in Windows and is supposed to be distributed along with the program. And, RichTx32.ocx ActiveX Control is not included in VB6 run-time distribution package from Microsoft either.Read more