如何使我的表单大小增长和收缩 [英] How Do I Make My Form Size Grow And Shrink
本文介绍了如何使我的表单大小增长和收缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有一些标签和组合框的表格,但是当我在应用程序运行时调整主表单的大小时,只有边框扩展而不是整个表单,
提前感谢
使用此代码:
此 .TopMost = 真跨度>;
this .FormBorderStyle = FormBorderStyle.None;
这个 .WindowState = FormWindowState.Maximized;
但是它会拉伸表单而不是其内容在
解决方案
请查看我过去的答案:
Zom Out在屏幕分辨率改变时出现故障 [ ^ ],
GUI Apperance - C#.Net [ ^ ],
计算ListView项目,SelectedItems返回错误的值 [ ^ ],
如何停靠按钮,以便它可以使用表格进行调整 [ ^ ](请参阅此处的基本代码示例)。
-SA
hi , ive got a form with some labels and group boxes ect ect, but when i resize the main form while app is running only the border expands and not the whole form ,
thanks in advance
used this code:
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
but it strecthes the form and not its content within
解决方案
Please see my past answers:
Zom Out malfunctions when Screen resolution changes[^],
GUI Apperance - C#.Net[^],
Counting ListView items, SelectedItems returns wrong value[^],
how to dock button so that it can adjust with the form[^] (see rudimentary code sample here).
—SA
这篇关于如何使我的表单大小增长和收缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文