本文介绍了当我更改系统分辨率并调整表单大小时,表单和所有控件都会调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 嗨朋友们, i希望调整所有CONTROLS和FORM的大小,当我改变分辨率时,表格和控件都会调整大小请给出一些建议.. 请给出这些内容的提示 1.Iridide grid contol按钮也调整其必须的大小.. 2.application支持所有类型的syatem分辨率.. 提前谢谢 Athi Varathan.S Hi Friends, i want to resize all my CONTROLS and FORM when i change resolution that form's and control are resized pls give some suggestion..Pls give tips for these follwing 1.Inside the grid contol button also resize its must ..2.application support all kind syatem resolutions..Thank's in advanceAthi Varathan.S推荐答案 你可以通过 Dock 和 Anchor 性质。 此处 [ ^ ]是一个例子。You can do this via the Dock and Anchor properties. Here[^] is an example. 移动到WPF。它是为那种东西而设计的。您可以使用Anchor和面板等在WinForms中执行此操作,但是当控件调整其使用的字体大小时,它看起来不是奇怪或彻头彻尾的奇怪,具体取决于它的变化有多大。 WinForms不适用于此,它永远不会取得巨大成功。更好的WinForms解决方案是将应用程序设计为(几乎)分辨率/大小独立,与VS相同。Move to WPF. It's designed for that kind of thing. You can do it in WinForms by using Anchor and panels and so forth, but when the controls resize the fonts they use don't so it looks either "odd" or "downright weird" depending on how big a change it is. WinForms is not intended for this and it is never a big success. A better solution of WinForms is to design your application to be (pretty much) resolution / size independent in the same way that VS is. 这篇关于当我更改系统分辨率并调整表单大小时,表单和所有控件都会调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-27 01:07