Reputation: 49221
I have a form in VS2010.
There's a panel in a base class that is set to visible false (Through a custom property).
When I open it in the designer the panel shows, though when i look at the property, it's false.
But when I run the program it's invisible and everything's fine.
If I go to the properties and set to true, and then false again, it will disappear.
How can I track what the designer's doing ? Or what can cause this to happen ?
Upvotes: 0
Views: 50
Reputation: 3327
Seems in this link that
Another issue of the DesignMode property is that it doesn't work inside the constructor of a UserControl or Form!
Perhaps you'll find other interesting tidbits in there as well?
Upvotes: 1