string sPath = dr + treeView1.SelectedNode.FullPath;
int N = 0;
foreach (ListViewItem Item in listView1.Items)
{
if (Item != null)
{
if (Item.Checked)
{
N++;
if (listView2.Items.Count > 0)
{
ListViewItem foundItem = listView2.FindItemWithText(Item.Text, false, 0, true);
if (foundItem != null)
{
}
else
{
listView2.Items.Add(Item.Text);
}
}
else
{
listView2.Items.Add(Item.Text);
}
comboBox1.Items.Add(sPath + "\\" + Item.Text);
}
else
{
if (listView2.Items.Count > 0)
{
ListViewItem foundItem = listView2.FindItemWithText(Item.Text, false, 0, true);
if (foundItem != null)
{
listView2.Items.Remove(foundItem);
}
else
{
listView2.Items.Remove(foundItem);
}
}
}
}
}
this one helps me to to do that listview selection try t.. thanks