在应用程序windforms C#中打开表单时出错 [英] Error to open the forms in application windforms C#

查看:70
本文介绍了在应用程序windforms C#中打开表单时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have a error in my application WindForms C#,

my application excute correctly, but  i can't open my forms !





Erreiur1 - imgbb.com [ ^ ]





Erreiur1 — imgbb.com[^]

(Sorry for the language of the picture error isn't in English)

message of error: You must have a license to use this ActiveX control 

How can I fix it?

thanks,





我尝试过:



将.net框架从4.5更改为4



What I have tried:

change the .net framwork from 4.5 to 4

推荐答案

开玩笑,



您似乎在表单上使用了需要购买许可证的控件。



如果您能够构建应用程序在你自己的机器上,你似乎已经购买了许可证。但如果它不能在另一台机器上运行,那么你需要在安装包中包含控件的运行时许可证。



你可以使用SysInternals [ ^ ]工具套件,帮助您找到期望找到许可证文件的位置(查看FileMon)



但是没有看到任何设计师代码也不知道哪个控件有问题我们无法提供帮助
Joking apart,

You appear to be using a control on your forms for which you need to have purchased a licence.

If you are able to build the application on your own machine then you appear to have bought the licence. But if it won't run on another machine then you need to include the runtime licence for the control in your install package.

You can use the SysInternals[^] suite of tools to help you find out where it is expecting to find the licence file (look at FileMon)

But without seeing any designer code nor knowing which control is at fault we can't really help


此错误仅在表单中设计页面,如果是这样,那么有一些设计和代码不匹配。您可能不小心删除了.cs文件中的一段代码,它仍然在form.deigner.cs中引用。例如,您可能已经创建了按钮和单击事件,您已经删除了代码中的单击方法但它将是仍然在设计自动生成的代码中提到。在警告中尝试忽略并继续(Ignorer et continuer),将不会加载具有错误的特定控件。请验证
Is this error is only in form design page, If so then there is some design and code mismatch. You could have accidentally deleted a piece of code in .cs file where it is still referred in the form.deigner.cs .For example you may have created button and a click event , you have deleted a click method in code but it will be still referred in " deign auto generated code" . Try "Ignore and continue" (Ignorer et continuer) in the warning , the particular control with error will not be loaded . Please verify


这篇关于在应用程序windforms C#中打开表单时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆