I had a problem with moving buttons when I close the form in the editor in VS 2012. I work exclusively in C #. This is diving me nuts, because I have to change the controls every time I open the constructor.
Form Size 995, 625 Button Location ------ -------- Save button 617, 575 Delete button 701, 575 Clear button 785, 575 Cancel button 869, 575
Buttons are attached at the bottom, on the right
Shape Maximum Size 0.0
Above these buttons is a TabControl. I used to have this problem, and I'm sure it also includes a form with TabControl.
There are several levels of inheritance below this form, but both are less defined. The buttons in the game here are inherited from the form just below this. In this form, they are tied up, to the left, so I think that my controls will move up and lie if they are executed by positioning these shapes. They sequentially move down and to the right.
The steps that are being played.
- Place the controls as above. (No further changes)
- Save the form. (no visible changes yet)
- Close the form.
- Open the form and the controls are arranged as follows:
Button Location Save button 852, 664 (off visible form) Delete button 936, 631 (off visible form) Clear button 1020, 630 (off visible form) Cancel button 1104, 664 (off visible form)
These places are different. Sometimes they are still on the form or partially on the form only in a lower position and are no longer aligned. They are always lower and to the right, as if they were performed by resizing the form during the closing process.
If I make the shape larger in the designer, they just keep moving down and the right to stay out of shape.
I resorted to positioning them programmatically at the moment, but would rather understand what is happening in order to prevent it in the future.