可垂直滚动的分组框中 [英] A vertically-scrollable GroupBox

查看:105
本文介绍了可垂直滚动的分组框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的 Windows应用程序窗体的创建应用程序。我基本上新的C#和Visual Studio(使用它,因为昨天已经)。到目前为止,我已经成功地创造如屏幕截图所示一个简单的形式。

I am creating an application using Windows Application Forms. I'm basically new to C# and Visual Studio(Been using it since yesterday). So far, I've succeeded in creating a simplistic form as shown in the screenshot.

我使用在框中提供的IP一个MySQL表获取数据。该数据被加载到的DataSet

I am fetching data from a MySQL table using the IP provided in the box. This data is being loaded into a DataSet. Since last 10 hours, I've played around with displaying them into each one of these:


  • DataGridView的

  • :自去年10个小时,我已经展示他们为这些每一个玩过左右
  • TableLayoutPanel中

把他们在表格窗口的其余部分。但两者的产出是不是我想的那样。一个我取列是一个 VARCHAR 范围可达 190个字符。在这两种情况下的最终结果是不是很容易阅读,使我对我的问题。

Putting them in the remaining part of the form windows. But both the outputs were not what I wanted them to be. One of the columns I am fetching is a VARCHAR ranging up to 190 chars. The final results in both the cases was not quite easy to read, which brings me to my question.

所以,现在我想展示里面的文字 分组框 ,有垂直滚动条。从的DataSet 可以在标签内展示的LinkLabel 根据要求

So, now I am thinking of showing the text inside a GroupBox, with a vertical scroll-bar. The data from the DataSet can be displayed inside a Label or LinkLabel depending on the requirements.

是这种方法可行(时间优化)?有一些其他类型的包装盒/视图能够满足我的条件是什么?我将获取并从主表中显示是在最225行至少2个链接的从另一个表他们每个人获取的(在的foreach 循环)。

Is this method feasible(time-optimization)? Is there some other kind of box/view which can satisfy my conditions? I'll be fetching and displaying at-most 225 rows from main table and at least 2 links for each of them fetched from another table(inside the foreach loop).

请给我建议这个工作任何其他的最佳解决方案。此外,我怎么能200+标签添加到分组框,使箱垂直滚动。至于我可以看到在 Visual Studio 2010中,任何类似 VerticalScroll 属性不分组框

Please suggest me any other optimal solution for this job. Also, how can I add 200+ labels to a GroupBox and make the box vertically scrollable. As far as I can see in Visual Studio 2010, anything like VerticalScroll property doesn't exist for GroupBox.

推荐答案

添加面板组框它具有滚动性质:)

Add a panel to Groupbox it has the Scrollable property :)

这篇关于可垂直滚动的分组框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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