private void listView_Item_DoubleClick(object sender, MouseEventArgs e)
{
if(listView1.SelectedItems.Count > 0)
{
if(MessageBox.Show("确定要下载此App吗?" , "提示" , MessageBoxButtons.OKCancel , MessageBoxIcon.Question) == DialogResult.OK)
在这个方法中怎么才能用到选中item的tag
我的意思是listview的item的tag是与我自己写的类App对应的,在我写的这段代码里是根据选中的item是否对应App,如果对应继续执行其他代码,后面的代码要用到item.tag里对应的App的属性,要怎么传递过来,选中的item同时只能是一个
追答获取到了tag 是一个object,然后你在拆箱出来使用就是了!!
本回答被提问者和网友采纳