[quote=引用 2 楼 speak13579 的回复:] [quote=引用 1 楼 happy09li 的回复:] 曾经我也遇到过好多次, 你复制窗体的时候是不是设计里面的窗体名字没改? Form.Designer.cs 里面的名字
// // Form_JCX_RK // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(825, 431); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.groupBox1); this.Controls.Add(this.toolStrip1); this.Name = "Form_JCX_RK"; this.Text = "入库"; this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); 是这个吗?这个副本Form.Designer.cs和副本窗体name是一样的啊~ 而且副本所有的属性名都和主本一模一样,随便改哪一个,主本也会跟着改...这是咋回事啊!
[quote=引用 1 楼 happy09li 的回复:] 曾经我也遇到过好多次, 你复制窗体的时候是不是设计里面的窗体名字没改? Form.Designer.cs 里面的名字
曾经我也遇到过好多次, 你复制窗体的时候是不是设计里面的窗体名字没改? Form.Designer.cs 里面的名字
110,545
社区成员
642,580
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧