2
Answers

how to loop through files in checkedlistbox unchecked files

prasad A

prasad A

8y
255
1
hi ....
 i want code for  checkedlist box contain files and i click delete button unchecked items in checkbox control deleted automatically including their physical path also.. 
 
 
 
for (int i = 0; i < checkedListBox1.Items.Count; i++)
{
    if (!(checkedListBox1.GetItemChecked(i)))
   {
          \\don't do anything 
    else
      {
           \\ want a code for unchecked items delete file permently from harddisk. 
       }
Answers (2)