winfrom 下 listbox 选项添加value
2020-12-13 16:50
标签:os ad c return rom public select string list public struct MyItem MyItem item; //添加 //.... //取出 if (theItem.Tag== "aaa ") winfrom 下 listbox 选项添加value 标签:os ad c return rom public select string list 原文地址:http://www.cnblogs.com/yangjinwang/p/4087133.html
{
public string Name;
public string Tag;
public override string ToString()
{
return Name;
}
}
item.Name= "张三 ";
item.Tag= "aaa ";
ListBox1.Items.add((Object)item);
MyItem theItem=(MyItem)ListBox1.SelectedItem;
{
//....
}
上一篇:《Java开发手册》