How to fix a corrupted form?

  • Thread starter Thread starter George Shubin
  • Start date Start date
G

George Shubin

Yesterday, all was fine with my project. I closed it and turned off the
computer.

Today, I try to open up a form and I get the error message shown here:
"ObjectDisposedException" Cannot access a disposed object named "TextEdit".

After clicking on OK, the second error message appears:
"There is no editor available for <my file name> Make sure the application
for the file type (.vb) is installed."

I'm using VS2003, and I tried reinstalling all the third-party controls that
I am using, which completed with no problems, but to no avail. The problem
seems to be in this one form only. My other forms are loading up and
displaying OK.

What's a fella to do? How do I trace the corruption in this one form? How
do I fix it besides completely recreating the form?

GS
 
Perhaps start by opening the form's code in a plain text editor like
Notepad, find the InitializeComponent procedure (in form.designer.vb,
perhaps), and comment out all the lines in it, or at least any lines that
reference components mentioned in the errors. Save and close the file, then
see if it will open in Visual Studio. See how far that gets you...
 
I tried that, but VS balked. I tried coaxing VS to rebuild the resx file,
but it resulted in an empty resx. I'm afraid I'll just have to rebuild it.
Unfortunately, I have been lax in backing things up regularly. Silly me. A
painful lesson. I suould know better.

GS
 
Back
Top