By Greg McGuffey - 6/14/2007
I have a weird issue with serialization by the designer. I have a small little test app that I'm messing with, only two forms, a few other classes. Regularly, but seemingly randomly, a control will be removed from the designer file, all traces of it gone. However, the control will still be shown in the designer. I.e. I open the form, controls are all displayed as they should be. I switch to code view, switch back, everything looks fine, except sometimes I won't be able to select a control. It's shown but I can't select it. If I check out the designer file, the control will be missing...completely. I close the form, then reopen and sure enough the control is gone. I can add it back, but that is obviously not desired.
Any ideas what might be going on? See this before? Fixes?
* Note: This is a test of a subclass of a TreeView that includes, indirectly, some events (AddHandler/RemoveHandler), which I understand might be causing problems if I didn't handle them correctly.
|
By Greg McGuffey - 6/15/2007
I installed SP1 for VS and I tried creating a brand new app and copying the code over. This is still happening. Runtime works great. If I don't mess with the form it works great. If I open the form in VS, either code or design, there is about a 40% chance this will happen.
Maybe I'm being bombarded by neutrinos and my control is disappearing through a wormhole and ending up on some poor souls Amiga....I just don't know....
|
By Trent L. Taylor - 6/15/2007
LOL....yeah, this is one of those things I cannot give you an answer for and is one of those things that you have to have everything in hand to even troubleshoot.
|
By Greg McGuffey - 6/15/2007
I was hoping against hope that this might be one of those things someone had seen before... . I suppose I could google for someone that is suddenly having random code inserted into their designer files (going with the wormhole theory )
If anyone else has seen this, speak up!
|
|