开发者

Visual Studio Designer destroys frmMain by simply open it

see screenshots: http://pastebin.com/GXMuYDPS

By just opening frmM开发者_JS百科ain.cs in my project the VS 2005 Designer changes the size without any interaction. Before opening the form looks like link #1.

The designer makes this out of it: link #2.

After compiling it looks like this (without doing anything except opening the file): link #3

When I make a diff it is obvious that the form-size was changed automatically. Setting the size back manually doesn't affect anything.


It doesn't look like it is corrupting it, it looks like your picture box on the form has a fixed size and the "corrupt" screenshot has just a shorter height and is thus appearing over the label on the bottom left corner. Try setting up anchoring on your controls, so you know that your label and picture are always a fixed distance from the bottom and will stretch and grow as needed.

I would guess for the label you would want to anchor it to bottom left and for the picture box, probably top, left, right and bottom.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜