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

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
 
J

Jerry Bujas

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
 
A

Andy Becker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top