visual studio 2005 designer moves controls and resizes Form

后端 未结 10 1160
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 10:05

    I had a trivial form with few controls on it, where the OK and Cancel at the bottom were being shifted up as soon as the form was opened in the VS2013 designer. The same behaviour was observed in VS2015.

    The accepted answer here of DPI did not solve the issue for me, nor were there any issues on the size of the form/padding/margins.

    Removing the controls that are shifted and adding them back into the form solved the problem for me, as suggested by ptutt here: Visual Studio designer moving controls and adding grid columns when form is opened

    While I appreciate ryantum's suggestion and links of using docking [with panels], as also referred to in the link above with Roland's blog post here https://weblogs.asp.net/rweigelt/28984, with something so trivial I'd rather just make it go away with removing/adding back in.

提交回复
热议问题