不能在Form的cs文件中添加额外的类。例如对于任意Form1.cs,若代码结构为: namespace Random { public partial class GanwuHelper : Form { // ... } internal class AnyClassInThisFile { // ... } } 那么在设计器中作出任何改动都会触发“应有两个或多个类部件”报错。 解决方法: 新建一个专门的类文件,把多余的类代码丢进去就行。 Form文件只能留一个类。