I kind of just get together here, but maybe there is a simple solution that will help me a little time.
When I draw Winforms GUI in the designer, the controls snap to specific points. I can align the source text of one control with another, I can align the left and / or top element of one control with another, etc. This is all great.
What is also great is that the controls are attached to other controls located at a distance from their fields. This means that if I create a vertical array of TextBoxes, then I can have them equidistant in my GUI - it looks less messy.
However, not everything happens correctly or in general. Let's say that I placed my text fields, and now I want to reduce the width of my form so that there are no spaces between the edges of the TextBoxes and the edge of the form. In addition, I want the distance between the edge of the TextBoxes and the edge of the form to be the same on the left, as it is on the right. If I dragged the right edge of the form to the left, then in TextBoxes it will not be anchored. I will have either calculations to determine what width should be, or a juggling action to gradually reduce the width until the TextBox snaps to the left side on the right.
I am not saying that this process is particularly complex or time-consuming. It is simply that if this happened, the whole process would be infinitely easier.
Is there a built-in option in VS2010, or perhaps an extension? Or maybe I'm just doing it wrong in the first place?
source share