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
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.