在VB2010中显示标题和数据 [英] Displaying headings and data in VB2010

查看:68
本文介绍了在VB2010中显示标题和数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在旧的VB中,一个图片框使我可以显示3或4个标题,其中包含以下数据.我正在VB2010中努力做到这一点.我曾尝试使用列表框,但确实可以做到这一点.我不只是想要一个清单.我也尝试使用RichTextBox 但无法显示数据.我希望它看起来像这样-

In old VB a picture box allowed me to display 3 or 4 headings with data below.  I am struggling to do this in VB2010.  I have tried using a list box but that does exactly that.  I don't just want a list.  I also tried using RichTextBox but can't get data to display. I want it to look something this this -

姓名     年龄     地址

Name      Age      Address

乔          12        3大街

Joe          12        3 High Street

鲍勃          13     高街2号

Bob          13       2 High Street

有技巧吗?

推荐答案

在旧的VB中,一个图片框使我可以显示3或4个标题,其中包含以下数据.我正在VB2010中努力做到这一点.我曾尝试使用列表框,但确实可以做到这一点.我不只是想要一个清单.我也尝试使用RichTextBox 但无法显示数据.我希望它看起来像这样-

In old VB a picture box allowed me to display 3 or 4 headings with data below.  I am struggling to do this in VB2010.  I have tried using a list box but that does exactly that.  I don't just want a list.  I also tried using RichTextBox but can't get data to display. I want it to look something this this -

姓名     年龄     地址

Name      Age      Address

乔          12        3大街

Joe          12        3 High Street

鲍勃          13     高街2号

Bob          13       2 High Street

有什么提示吗?

到目前为止,这令人困惑:

So far this is confusing:

您可能要创建一个类并将该实例放在PictureBox的.Tag属性中吗?

Do you maybe mean to create a class and put the instance in the .Tag property of a PictureBox?


这篇关于在VB2010中显示标题和数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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