如何调整tabControl高度以适应Windows 7上的Windows窗体高度,比例因子设置为150% [英] How to resize tabControl height to fit Windows Form Height on Windows 7 with scale factor set to 150%

查看:174
本文介绍了如何调整tabControl高度以适应Windows 7上的Windows窗体高度,比例因子设置为150%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

如何在Windows 7上调整tabControl高度以适应Windows窗体高度,比例因子设置为150%

How to resize tabControl height to fit Windows Form Height on Windows 7 with scale factor set to 150%

我尝试使用Panel控件嵌入tabControl,让系统调整tabControl的高度,但它不起作用。

I tried to use a Panel control to embedded the tabControl to let the system to adjust the height of tabControl, but it did NOT work.

因为设置了比例因子后,宽度和Windows窗体的高度已更改,

Because after scale factor is set, the Width and Height of Windows Form is changed,

我获取Windows窗体的高度并将此值设置为tabControl的高度以及tabControl中的所有tabPages,如

I get the height of Windows Form and set this value to the height of tabControl and all the tabPages inside tabControl, like

下面,但它仍然无效。

如何在更改比例因子时将tabControl设置为正确适合Windows窗体。

How to set the tabControl to fit the Windows Form correctly when scale factor is changed.

BTW,它运行在Windows 10系统下正常。

BTW, it runs OK under Windows 10 system.

谢谢和最诚挚的问候,

E-John




推荐答案

你好E -John,

Hi E-John,

>>如何在更改比例因子时将tabControl设置为正确适合Windows窗体。

>>How to set the tabControl to fit the Windows Form correctly when scale factor is changed.

这是一个winforms应用程序,如果是这样,请将tabcontrol的名为Dock的属性设置为Fill。 

Is it a winforms application, if so, please set the properties named Dock of the tabcontrol to Fill. 

祝你好运,

张龙


这篇关于如何调整tabControl高度以适应Windows 7上的Windows窗体高度,比例因子设置为150%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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