.net如何在listbox或listview中,只显示其成员item的object的一个属性?
在vb.net中,有一个listbox或者listview
现在动态生成一些结构的对象
Dim structure item
Text as String
Value as String
End structure
listbox中插入的都是structure的对象,可是我想显示出来的只想显示item.text,但click的时候
msgbox(item.value)
由于.net中没有了ItemData属性,不知道.net中有什么解决办法么?
多谢