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
If you don't need designer altogether this class attribute should do the trick:
[System.ComponentModel.DesignerCategory("")]