Winforms C#问题 [英] Problem with winforms c#

查看:71
本文介绍了Winforms C#问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其他计算机上设置我的项目时,我会使用c#2010部署我的项目
控件在表单更改中的位置.

I deploy my project with c# 2010 ,when i setup it on other computer
place of controls in the form change.

how solve this problem?

推荐答案

这可能是因为另一台计算机上的分辨率不同.

看看 Windows窗体中的自动缩放 [
This is probably because the resolution is different on the other machine.

Have a look at Automatic Scaling in Windows Forms[^]. This might give you a few pointers on what you need to do.


这通常是过于僵化的设计所导致的,这种设计不能忍受应用程序窗口的大小和在其中渲染的细节不同版本的操作系统.

这可以给您一些有关如何改进设计的想法:
当屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

另请参见 GUI外观-C#.Net [方法停靠按钮,以便可以使用以下格式进行调整 [
This is a usual result of overly stiff design which is not tolerant to the size of the application window and detail of rendering in different versions of the OS.

This can give you some ideas on how to improve the design:
Zom Out malfunctions when Screen resolution changes[^].

See also GUI Apperance - C#.Net[^].

One simple code sample: how to dock button so that it can adjust with the form[^].

—SA


这篇关于Winforms C#问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆