.net - Can't see the designer view in Visual Studio 2008 C# Windows Forms due to weird error -
When I try to click on the Designer tab to view the designer, I get this error:
To prevent potential data loss before loading the designer, the following errors should be solved:
The designer could not be shown for this file because none of the classes are ready can be done. The designer examined the file in the following sections: Form 1 --- The base class 'System.Windows.Forms.Form' could not be loaded. Ensure that the assembly has been referred and all the projects have been made.
I want to go to the designer and I do not know what is wrong. My Form 1 code looks at the top of it:
using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Text; Using System.Windows.Forms; Using System.Drawing.Drawing2D; Using System.Diagnostics; Namespace Fobar {Public Partial Category Form 1: Form {List & lt; Charlabel & gt; AllChars = new list & lt; Charlabel & gt; (); Public Form 1 () {... etc ...
Any ideas?
When you change namespace or other object in partial square (like form) from code editor You are making invitations for insanity. As the partial square of the name is a square, which is defined "partially" on the Code view, but there is another part which is generated automatically by VS and it is the second part of the class. In that part it defines all UI elements, fonts, default values, etc. When you change the name of the name in one part of the square, the other part does not know what happens and then interesting errors begin. When changing the name space, the name of the class, the name of the event methods, always use the refractor option in the VAS.
In your case, I would probably like to go back to that old name, and then provide the REFactor option VS (Highlight
hope for this help.
Comments
Post a Comment