在列表框中添加具有多个列的项目 [英] Adding items in a Listbox with multiple columns

查看:101
本文介绍了在列表框中添加具有多个列的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 2列在列表中添加项目?如果我使用 ListBox.AddItem ,它会将项目添加到第一列。我想在第二列中添加项目。
谢谢!

How can I add items in a list with 2 columns? It adds the items just in the first column if I use ListBox.AddItem. I want to add items in the 2nd column too. Thanks!

推荐答案

使用列表属性。

ListBox1.AddItem "foo"
ListBox1.List(ListBox1.ListCount - 1, 1) = "bar"

这篇关于在列表框中添加具有多个列的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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