IDEA - 需要使用滚动条列出容器中的多个标签/链接标签 [英] IDEA - Need to list a number of labels/linklabels in a container, with scrollbars

查看:155
本文介绍了IDEA - 需要使用滚动条列出容器中的多个标签/链接标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,在一种新形式中,我以编程方式创建了一些标签链接标签。该程序的开头不知道该数字。我需要在容器或其他东西中显示它们,当它们太多时,容器应该显示一个垂直滚动条..



我的表格必须有一个固定大小



我尝试使用Panel,LinkLabel但没有成功,这意味着它没有显示滚动条并且某些控件没有显示



您有什么想法吗?



(我想制作类似于目录的东西,但不是没有固定数量的物品。



谢谢...

So, in a new form I create programmatically some labels and linklabels. The number is NOT known by the start of the program. And I need to display them in a container or something, and when they are too many, the container should display a vertical scrollbar..

My Form is must have a fixed size

I tried Panel, LinkLabel but no success, meaning it doesn''t show a scrollbar and some of the controls don''t show up

Do you have any ideas?

(I want to make something like a table of contents, but which doesn''t have a fixed number of items)

Thank you...

推荐答案

设置Panel的AutoScroll属性为true,当其中的控件不适合时,它将显示滚动条。
Set the Panel''s AutoScroll property to true and it will display a scroll bar when the controls in it do not fit.


这篇关于IDEA - 需要使用滚动条列出容器中的多个标签/链接标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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