VB.NET或C#报错:You must hava a license to use this ActiveX control.
VB.NET或者C# winform开发时,如果使用了Microsoft Visual Basic 6.0 ActiveX,并动态创建该控件实例,那么程序移植到没有安装Visual Basic 6.0的系统会出现如下提示:
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
You must hava a license to use this ActiveX control.
你需要一个许可来使用这个控件
官方的解决方法是:
下面是来自网络的资料,后面的就是许可证密钥:
// Masked Edit Control 6.0 license key // Chart Control 6.0 (OLEDB) license key // Common Dialog Control 6.0 license key // ADO Data Control 6.0 (OLEDB) license key // Common Controls-3 6.0 license key // Windows Common Controls-2 5.0 (SP2) license key // Windows Common Controls license key // Data Bound Grid Control 5.0(SP3) license key // Data Bound List Controls 6.0 license key // Internet Transfer Control 6.0 license key // Multimedia Control 6.0 license key // Chart Control 6.0 license key // Windows Common Controls-2 6.0 license key // Windows Common Controls 6.0 license key // Comm Control 6.0 license key |