想查看设计界面,结果报错了
想添加个组件都不行
The class Form1 can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.
仔细看 英文意思
原因,我在Form1.class中多加了一个class,且放在了public partial class Form1 : Form之前。
解决方法,将那个class放在public partial class Form1 : Form之后。
ok,问题解决