16,554
社区成员
发帖
与我相关
我的任务
分享
'定义一个列表
Dim arr As New ArrayList
'添加1个元素的方法,填多个的话,自己写个循环就好了
Dim a As New TextBox
a.Text = "sdfg"
a.Tag = "1"
arr.Add(a)
ListBox1.Items.Add(a.Text)
'获得value的方法
arr.Item(ListBox1.SelectedIndex).tag