无法加载表单设计器

问题描述

我有一个项目,我正在工作大约一年。它一直运行良好,但需要一点爱。其中之一是在一些需要的库上仅使用 x64。

现在我一直在研究这个,我无法加载两个派生自基类的表单。这以前有效,我不确定我做了什么来打破这个。

我的错误是:

无法为该文件显示设计者,因为没有 可以设计其中的类。设计师检查了 文件中的以下类: Form1 --- 基类 无法加载“ThermalVision.ExtendedForm”。确保组装 已被引用并且所有项目都已构建。

我扩展了表单加载和设计加载就好了。扩展形式超级简单:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ThermalVision
{
    public class ExtendedForm : Form
    {
        public delegate void BroadcastMouseLocation(object sender,EventArgs e);
        public event BroadcastMouseLocation OnBroadcastMouseLocation;


        public void ReceivedMouseHover(object sender,EventArgs e)
        {
            MousePointEventArgument mpea = (MousePointEventArgument)e;
            OnBroadcastMouseLocation(this,mpea);
        }
    }
}

我尝试从项目中删除 Extended for 并阅读。我确实看到了其他解决方案,但它们似乎与此问题无关。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...