Forms not loading pls help!

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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,
 
B

B. Cavour

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
 
B

B. Cavour

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.
 

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