开发者

WinForms designer breaks on VS2005 when using Windows 7

开发者 https://www.devze.com 2023-03-28 11:19 出处:网络
We have an old project that is designed using VS2005 and WinForms. Everything works perfectly on Windows XP, but when I open the designer on Windows 7, everything breaks down.

We have an old project that is designed using VS2005 and WinForms. Everything works perfectly on Windows XP, but when I open the designer on Windows 7, everything breaks down.

The controls get sized to random size and some of them dissappear (or are moved to random coordinates).

What can we do开发者_如何学编程 to solve this issue? Should we switch to VS2008?


A newer version of VS should help, but i'd be surprised if this can't be fixed in 2005.

Try commenting everything out in the method where initializeComponent runs, or any properties that set UI change. You should find it easy enough, it's a method that has long lists of calls against the controls on the form.


The problem was that we used TableLayoutPanel inside a GroupBox and not on the form. When we added the TableLayoutPanel on the form and moved the GroupBox into it, the designer stays ok.

0

精彩评论

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

关注公众号