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

后端 未结 5 1762
囚心锁ツ
囚心锁ツ 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:45

    If you don't need designer altogether this class attribute should do the trick:

    [System.ComponentModel.DesignerCategory("")]
    

提交回复
热议问题