Cannot implicitly convert type 'string' to 'System.Windows.Forms.TextBox'

前端 未结 2 1011
不思量自难忘°
不思量自难忘° 2021-01-12 06:51

I don\'t know what to do because the error is in the Form1.Designer.cs and because I have no experience in debugging that part of the program.

/         


        
2条回答
  •  一生所求
    2021-01-12 07:11

    The error is on this.Name = "Form1";

    I suspect you have created a control named Name, which conflicts with the Name property of the window. Just rename the control to something else and it should work again.

提交回复
热议问题