visual studio 2005 designer moves controls and resizes Form

后端 未结 10 1162
Happy的楠姐
Happy的楠姐 2020-11-29 09:36

When i open a form in visual studio 2005 (c#) the designer automaticaly resize the form and move/resize controls without touching the designer at all. The source file is cha

10条回答
  •  广开言路
    2020-11-29 09:51

    Had the same problem with controls anchored top, left and right within complex TabControls. The visual studio forms designer was increasing the width of all nested controls each time I would open the form.

    I found a simple workaround thanks to this post. I simply added a panel to each tab and set their dock property to fill. All existing controls within the tabs were moved inside those panels. This works, even if the controls are anchored top, left and right.

    Works at least for Visual Studio 2013 and 2015.

提交回复
热议问题