Mscomm32.ocx License

Posted on by

Hi VR, Based on my understanding, you want to add the license for your mscomm32.ocx at runtime in C# ====================== Actually, if you want to use mscomm32.ocx control, you must have the control's License key. I think your machine may be not installed the Visual Studio 6.0, so the your machine is not licensed.

A recommanded way is adding the Licensing Keys to the Registry at design-time. Then your mscomm32.ocx control should behave well. For more information, please refer to: #1. 'PRB: Errors When You Use Visual Basic 6.0 Controls in Visual Studio.NET' and #2. 'HOWTO: Register an ActiveX Control (.ocx) Manually' Can you show me why you want to register the license at runtime? I think if you still want to register at runtime, you may use Process class to run Regsvr32.exe like #2 does.

Mscomm32.ocx License Nav

Or you can use Process class to run the 'VB6Controls.reg' in #1 article. Az Doe Or Die Zip. Also, the following article may help you: 'PRB: Microsoft Visual Basic.NET Does Not Support Adding ActiveX Controls and Licenses at Run Time' 'PRB: Dynamic Creation of Redistributable Control Fails' ===================== Please apply my suggestion above and let me know if it helps resolve your problem. Thank you for your patience and cooperation.

We were confronted with the exact same problem. In theory it is possible to create a wrapper around the mscomm32.ocx, but we concluded that this was not a good.

Lenticular Effects 4.1. If you have any questions or concerns, please feel free to post it in the group. I am standing by to be of assistance. Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure!

- This posting is provided 'as is' with no warranties and confers no rights.