c# - Visual Studio Designer is always trying to change my control -


I have some complex user controls, and while working with it, Visual Studio 2008 is giving me a harmless annoyance every time When I open the control with the designer, he decides to change some harmless values ​​set by the designer immediately - that is the initialization of the shape properties. If I save those changes, I close and reopen, then almost always ends up to decide the second component of my control, its initial size changes, ad infinity, fortunately, these changes are harmless because I am using automatic shape everywhere but it is quite upset to work. I do not know what is going wrong, to find out what I think is happening now, the designer every time I open the control, then the results of auto-sizing in the initial size fields are presenting is. Any ideas on reasons / reforms?

Edit: In addition to this, I am using the application setting, which is to protect the size of some re-shaped hair components in all parts of the application, But I hope the designer is smart enough to understand that it should only ever use defaults.

Maybe it can help:
I have seen that the form designer (no WPF, a web Etc.) If you insert a custom user control, then there is a strange behavior.
There is a random change in the size of other controls (group-box, edit box, combo box) (happened with width to me).
Resizing control resumes random, but at the time of the restart of vs2010 it is always the same if it has been removed and re-inserted, the designer chooses different controls and randomly The shape changes ...

I changed the AutoSkyLed property from "User" with "Auto" to "Inherit" and it has not happened again.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -