如何将Windows窗体高度设置为最大? [英] How to set Windows form Height to maximum?

查看:75
本文介绍了如何将Windows窗体高度设置为最大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示一个宽度为800,高度为1130的窗体。每次我将height属性设置为1130但重置为768.我的桌面分辨率是1366 * 768,请帮我将我的窗体显示到我的pc。

I need to show a windows form with width 800 and height 1130. Every time I set the height property to 1130 but it reset to 768. My desktop resolution is 1366*768, Please help me to show my windows form into my pc.

推荐答案

这是Windows窗体中的限制,您不能拥有超过屏幕最大尺寸20px的窗口。在设计时有一种解决方法,但是当你运行表单时,没有办法让它比你的屏幕更大。
This is a limitation in Windows Forms, you cannot have a window that is greater than 20px over the maximum dimensions of the screen. There is a way around this at design time, but when you run the form there is no way to make it bigger than your screen.


这篇关于如何将Windows窗体高度设置为最大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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