2

To prevent possible data loss before loading the designer, the following errors must be resolved:

list of errors (the name isn't that important):

The variable 'TextEditor' is either undeclared or was never assigned. .... ...

then it goes:

Instances of this error (1)

  1. Hide Call Stack

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)

It builds but cant access the form (opens empty form if I press ignore)...

Thanks!

Paradigm
  • 193
  • 1
  • 4
  • 11
  • Please do as per the VS. Move the class code so that it is the first class in the file and try loading the designer again. – mihirj Feb 25 '13 at 10:22
  • i tried it already but didn't work..@mihirj – Paradigm Feb 25 '13 at 11:04
  • possible duplicate of [Visual Studio 2010 Designer Error on Run](http://stackoverflow.com/questions/5036889/visual-studio-2010-designer-error-on-run) – Tomas Kubes Nov 11 '14 at 07:27

2 Answers2

4

I can't remember well but thre was an attribute like [Designmode(false)] or anything like this. This attribute ignore properties in design mode. So designer don't access this property when you open your design mode. If is problem about with your custom class and if you can edit class you can add this attribute to property which occures this error. Or instead of this you can try followings.

  1. close all opened documents (ALT+(W->L) ) or from the top menu. And then builkd and open your form.

  2. Close all documents in visual studio, clear your projects obj and bin folders if you can and rebuild your projects or clean solution.

  3. Close all documents in visual studio clear bin and obj folders, Restart your visual studio and rebuild your solution.

ersin ceylan
  • 107
  • 1
  • 6
0

(for VS2008 windows Project) In VS 2008 open your project, first close all tabs in VS project project, first build project, then after clean project, again build the project. double click on Form.cs.

grp
  • 1