如何在面板中进行自动滚动更小的C# [英] how to make autoscroll in panel smallerC#

查看:95
本文介绍了如何在面板中进行自动滚动更小的C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常大的面板。我想添加垂直滚动条。

我试过:

Page.AutoScroll = true;



但是滚动具有面板的大小。我只是使用面板的滚动条看不到整个面板。我怎样才能让它变小。或者我应该怎么做才能查看整个面板而不使用windows形式autoscrollbar。

I have a panel which is very large. I want to add vertically scroll bar.
I tried:
Page.AutoScroll = true;

But the scroll has the size of the panel. I cant see the entire Panel by just using the scrollbar of the panel. How can I make it smaller. Or what should I do the view entire panel without using the windows form autoscrollbar.

推荐答案

滚动条的整个想法是让你看看不适合的部分:它不是要立即使所有东西都可见。你能做到这一点的唯一方法就是让面板中的每个项目更小,更紧密 - 这在极端情况下意味着它们最终太小而无法看到。
The whole idea of a scrollbar is to let you look at parts which do not fit: it is not intended to to make everything in in visible at once. The only way you could do that is to make each of the items in the Panel smaller and closer together - which in extreme cases means that they end up too small to see.


这篇关于如何在面板中进行自动滚动更小的C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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