But Paul is also right in that the event handlers do get "smoked." That is probably what was part of your problem...but the problem there too can be getting Humpty Dumpty back together again correctly depending on how large the program is and how many events, etc. were removed.
Sad , but true.
That's 2 funny I have a daily reminder in outlook set to go off at 12 noon and 5 :30 The lunch time one has saved me alot of pain, sometimes I go next door to the strip club for lunch (they have a really great buffet) . And for some unknown reason I sometimes make mistakes later that afternoon and it is really nice to have my morning's work safe and secure.
Sad , but true. Keith Chisarik
this
Thanks,Bill
One problem you might have is that once the object gets deleted visual studio removes the handles statement and if you Ctrl Z it it does not re-apply the event handlers,
ie private sub somethingclicked(sender as object, e as event arg) handles something.clicked
after deleted becomes somethingclicked(sender as object, e as event arg)
after Ctrl Z the handler is still misssing so your code never executes, same thing if you cut and paste an object.
I reverted. I printed everything I could, including screen shots. I will work on getting the last three or so days updated on that one form.
Lesson learned: Become a source control addict.
Thanks!
Yup...source control!
It is really difficult to supply an answer without actually having the designer file and source code in hand...and even then, no guarantees!
I know that you don't need or want to hear this, but you should really be checking in your work a lot more often...for this very reason I am a check-in junkie and check-in when I am finished with a particular segment of code. But regardless, we always check-in everything before we shut down for the day.
Alas! When I run the app (debug mode), the grid comes up "empty". It shows that there are 31 records (count in column 1), but there is no data showing up. I have built, rebuilt, changed the grid, built, rebuilt again. I reset the datasource (removed the BBS, save, reset the BBS, saved again). I am running out of ideas about why this may be happening.
Is there a "trick" to getting an undeleted control working again?