The class foo can be designed, but is not the first class in the file error

后端 未结 5 1751
囚心锁ツ
囚心锁ツ 2021-02-20 08:36

I have this

The class foo can be designed, but is not the first class in the file

error after adding foo class derived from TextBox

5条回答
  •  伪装坚强ぢ
    2021-02-20 09:01

    Either your class.Designer.cs file OR your class.cs file will have another class defined at the top of it. Since the class is defined in both files as a partial class be sure to check both of the files!

提交回复
热议问题