I am working on a multi form Windorms application in Visual Studio 2017. I have a small form set up properly (pic 1,) If I close the window and open it again Visual Studio messes up my form for no apparent reason. (pic 2,)
The only way I managed to keep this from happening when running my program is setting the buttons location at runtime in code.
This does not happen on any other form by the way.
The form is a FixedToolWindow
and the buttons are just regular buttons. They are anchored to the bottom left and bottom right.
I can post the Designer code if anyne needs it.
Why does VS do this? Is there something I can do to make it stop?
Small edit: I closed and opened the form again, and it just keeps raising the buttons higher.
Small edit #2: After reopening the form, I can press ctrl + z
to undo and the buttons go back to their original places, so it looks like this sis happening when I open the form again maybe.