VS 2005 form designer major problem

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I made a code change to a form , then saved it and tried to go to design
mode in the form. I get an error message (there seems to be a dataset
defintion that can no longer be initialled apparently because I did not
first remove or modify a UI element that was bound to a datalibrary and I
had made some field changes in the datalibrary).Changing the line of code I
just wrote does not allow me to go in the designer any more. The errors
(there are several) are in the autogenerated code.

Does anyone know how to undo that damage? The only way I can seem to do this
is to create a new form and restart from scratch, but I've been working on
this one for a week. I'd like to be able to retrieve my work.

Thanks for any help

Bob
 
Bob,

Go into the code side of your application and rem out your changes. See if
that fixes your problem.
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
 
It doesn't, that was the first thing I tried to do.
The designer screen has a big read header and then a list of errors and the
messages windows has a warning message pointing to line 541 in the
autogenerated partial class, but looking at that code line number it's just
defintion of a label control that could not possibly have anything to do
with the problem.

So the VS designer takes you into a dead end and the error or warning
messages it gives are wrong.

Way to go! Some day I'm gonna learn about not using anything that's not at
least V3.0

Bob
 
Bob,

When you double left click on the error, does it take you to a place in your
code? REM " ' " out each error that you can. Or, you may have to port your UI
controls and forms into another project. I've had to do that on occasion too.
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
 
Yeah, I ended up creating a new form replacing the old one in the project
and recreating the form from scratch. Problem is you can't just do any copy
paste between the two forms for all the UI elements. You gotta recreate them
all from scratch. This REALLY sucks, especially if you have localized
already a lot of stuff. Just things like recrreating the menu, the datasets,
etc is a real problem.

Bob
 
I occasionally run into this. Since the first time it happened, I started keeping a daily backup
copy of the project - just in case.

For me, it seems like if I correct or comment out the offending line(s), I have to do a SaveAll,
Rebuild, Close and Reopen the project in order to get back to the Design Screen. If that still
doesn't fix the problem, then I resort to the backup.


Gene
 
Back
Top