在Windows窗体中启用滚动条 [英] Enable scroll bars in windows forms

查看:51
本文介绍了在Windows窗体中启用滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows窗体应用程序.在我的应用程序中,我将控件固定在表单上,​​以便可以最大化表单并相应地安排控件.此应用程序应支持不同的DPI值.

I'm developing a windows forms application. In my application I have anchored controls to forms such that forms can be maximized and controls will get arranged accordingly. This application should support different DPI values.

我已将某些控件的锚点设置为下,右和右下.窗体的AutoScroll属性设置为true.当DPI值为默认值(96)时,控件将按预期工作.但是问题是,如果屏幕启用了更高的DPI(例如120),即使启用了表格滚动条,也无法看到锚定在底部和右下角的控件.

I have set the anchors of some controls to bottom, right, and bottom-right. The AutoScroll property of the forms is set to true. When the DPI value is on default (96) controls work as expected. But the problem is if the screen loads in higher DPI (like 120), even though form scroll bars enabled, controls which are anchored to bottom and bottom-right cannot be seen.

有人可以在这个问题上给我建议吗?

Could anybody please advise me on this issue?

致谢,埃兰加(Eranga)

regards, Eranga

推荐答案

在表单属性中设置 AutoScroll = True

这篇关于在Windows窗体中启用滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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