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.
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