'System.Windows.Forms.Form' cannot be designed.

  • Thread starter Thread starter Jon Prisbe
  • Start date Start date
J

Jon Prisbe

I have several C# applications that all of a sudden I get the following
error when trying to view the form in visual studio

The base class 'System.Windows.Forms.Form' cannot be designed.

I'm using VS.net 2002 on WinXP Professional.

Any suggestions?


Thanks,

Jon
 
Jon Prisbe said:
I have several C# applications that all of a sudden I get the following
error when trying to view the form in visual studio

The base class 'System.Windows.Forms.Form' cannot be designed.

I'm using VS.net 2002 on WinXP Professional.

Any suggestions?


Thanks,

Jon

I am not sure whether we are talking the same thing here. I had a similar
problem in C++. If you receive this message when trying to open the design
mode of an "h" file, try to comment out all the include statements or
definitions that may appear before the definition of your class, open the
design mode, and then restore the h file.

Jerry
 
Jon Prisbe said:
I have several C# applications that all of a sudden I get the following
error when trying to view the form in visual studio

The base class 'System.Windows.Forms.Form' cannot be designed.

Do you have any form inheritance going on, or is this the "stock" stuff?

Best Regards,

Andy
 
Back
Top