Tag: 表单控制

声明中缺少部分修饰符..此类型的另一部分声明存在“。我是初学者,只是跟着这本书

我是初学者,我正在按照一本书做练习。 下面是我的代码,我得到了这个 “Missing partial modifier on declaration of type ‘Windowsform.Form1’; another partial declaration of this type exists” 。 我该怎么办? 我的代码如下: using System; using System.Windows.Forms; namespace Windowsform { public class Form1 : Form { private TextBox txtEnter; private Label lblDisplay; private Button btnOk; public Form1() { this.txtEnter = new TextBox(); this.lblDisplay = new Label(); this.btnOk = […]