listView如何判断是否有一条item被选中?紧急求助!!!
if(??????????){ this.listView1.Items.Remove(this.listView1.FocusedItem);
this.textBox3.Text = this.listView1.Items.Count.ToString();
for(int i=1;i<=listView1.Items.Count;i++)
{
listView1.Items[i-1].Text = i.ToString();
}
}
else
{
MessageBox.Show("请选择要删除的内容!");
}