Windows Develop Bookmark and Share   
 index > Windows Forms Designer > The designer could not be shown for this file because none of the classes within it can be designed.
 

The designer could not be shown for this file because none of the classes within it can be designed.

hi,
i have created two forums in vc++ .net.
during the time i create, both the forms open nicely for desgin.
when i close it and open the soultion or change it to the different drive, one form open and one form give the the message saying
"The designer could not be shown for this file because none of the classes within it can be designed. ".
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

i am not able to find the cause of the error.

please help me.

jack_kkd  Wednesday, August 05, 2009 11:26 AM
From what you are describing, I suggest you to post in the Windows Forms Designer forum instead.

Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
Sheng Jiang 蒋晟  Wednesday, August 05, 2009 2:17 PM

Hi,

I test on my side but have no luck. Could you please give us more details about this issue? For example, is the second form deriving from abstract class?

I searched on the net and find some similar issue. Hopes these will give you a hint.

Deriving component from abstract base class

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=451833

Problems with inheritance generic form

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=378040

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=334269

Best regards,

Ling Wang


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Monday, August 10, 2009 3:31 PM

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Ling Wang  Monday, August 17, 2009 1:57 AM

You can use google to search for other answers

Custom Search

More Threads

• Escape Button in a propertyGrid
• "Select resource" dialogue
• Tree View User Control Help...
• Setting visibility of properties in a propertygrid at runtime
• Need to build a listbox containing a checkbox and image
• VS 2005 Winform designer Issue
• How can i add a verb to a components designer from a different components designer
• Custom Scrolling
• Custom CollectionForm
• Cannot Open File