When you run an application that was built using (classic) Visual Basic 6.0, the following error message may occur and the program terminates.
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.
You may download it here: RichTx32.zip. Unzip the archive and extract the file RichTx32.ocx to one of these folders:
In Windows 32-bit systems, extract the file to
In Windows 64-bit systems, extract the file to
Register the OCX
You need to register RichTx32.ocx module using the following command from elevated or Admin Command Prompt.
For Windows 32-bit
For Windows 64-bit
You should see the message DllRegisterServer in C:\WINDOWS\system32\RICHTX32.OCX succeeded. after running the above command.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!