VS designer serialization weirdness


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
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.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
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....Alien
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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. 
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I was hoping against hope that this might be one of those things someone had seen before... Pinch . I suppose I could google for someone that is suddenly having random code inserted into their designer files (going with the wormhole theory Alien )



If anyone else has seen this, speak up! BigGrin
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search