我正在尝试通过对象发送者访问 listviewitem selectitem 文本属性。我该怎么做呢?
private void button1_Click(object sender, EventArgs e)
{
ListViewItem LS = new ListViewItem(@"c:\windows\explorer.exe");
ListViewItem LS1 = new ListViewItem(@"c:\windows\notepad.exe");
listView1.Items.Add(LS);
listView1.Items.Add(LS1);
}
private void listView1_Click(object sender, EventArgs e)
{
// ???? how do I get listviewitem.text property here based on item selected
// ?? am i using the right eventhandler?
}