|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VS 2005 form designer major problemI 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. -- Show quoteHide quoteMichael Bragg, President eSolTec, Inc. a 501(C)(3) organization MS Authorized MAR looking for used laptops for developmentally disabled. "Bob" wrote: > 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 > > > > 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 Show quoteHide quote "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote in message news:E5BEFE13-17B3-4078-AE09-B55279ADE638@microsoft.com... > 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. > > > "Bob" wrote: > >> 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,
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. -- Show quoteHide quoteMichael Bragg, President eSolTec, Inc. a 501(C)(3) organization MS Authorized MAR looking for used laptops for developmentally disabled. "Bob" wrote: > 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 > > > "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote > in message news:E5BEFE13-17B3-4078-AE09-B55279ADE638@microsoft.com... > > 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. > > > > > > "Bob" wrote: > > > >> 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 > >> > >> > >> > >> > > > 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 Show quoteHide quote "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote in message news:D471D1F2-350F-45A9-94E2-5465C5ED9280@microsoft.com... > 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. > > > "Bob" wrote: > >> 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 >> >> >> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> >> wrote >> in message news:E5BEFE13-17B3-4078-AE09-B55279ADE638@microsoft.com... >> > 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. >> > >> > >> > "Bob" wrote: >> > >> >> 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 >> >> >> >> >> >> >> >> >> >> >> 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 Show quoteHide quote On Sat, 5 Aug 2006 14:43:13 -0400, "Bob" <bduf***@sgiims.com> wrote: >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 >"eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> wrote >in message news:D471D1F2-350F-45A9-94E2-5465C5ED9280@microsoft.com... >> 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. >> >> >> "Bob" wrote: >> >>> 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 >>> >>> >>> "eSolTec, Inc. 501(c)(3)" <eSolTecInc50***@discussions.microsoft.com> >>> wrote >>> in message news:E5BEFE13-17B3-4078-AE09-B55279ADE638@microsoft.com... >>> > 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. >>> > >>> > >>> > "Bob" wrote: >>> > >>> >> 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
Create DLL in Visual Studio 2005 accessible by Excel 2002
UDP Sending an array possible? closing all applicatios vs processes Advice on timer project UpdateDB from DataSet Public definitions in module - VS 2005 using excel before windows shutdown GridView how to appened data into a arraylist? ThreadPool and DeadLock problems |
|||||||||||||||||||||||