prasad A

prasad A

  • NA
  • 14
  • 16.1k

how to loop through files in checkedlistbox unchecked files

Sep 11 2016 6:05 AM
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)