Forms not loading pls help!

  • Thread starter Thread starter B. Cavour
  • Start date Start date
B

B. Cavour

Ok, I'm a C# newbie.

W/o making any changes to forms themselves, I used to be able to click on a
form and it would open. Now for some forms I'm getting an error saying "An
error occurred while loading the document. Fix the error, and then try
loading the document again."

Can someone give me an idea of what could be wrong?

--B. Cavour
 
Hi,

Is this in the designer?

If so, most probably some .resx files are corrupted , get the correct .resx
file based on the form that does not open, rename it and load the project
again and try to open the form in the designer

cheers,
 
Yes it is in the designer.
I tried what you did and it still did not work

It's happening to every form now.

The odd thing is that everything builds and executes correctly
 
Fixed the problem.

Commented out the InitializeComponent(); from the source and then clicked on
the design. It forced it to compile again. Then I uncommented Init... and
it worked after that.

I still don't know how this problem was started.

Hope this helps someone.
 
Back
Top