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

后端 未结 5 1759
囚心锁ツ
囚心锁ツ 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 08:51

    ALso,the name of the file must match the name of the class. For example file myClass.designer.cs expects the class myClass So check for typos.

提交回复
热议问题