I am populating a treeview in form1 based on the checkeditems in checkedlistbox which is in form2 but am unable to list the subfolders and files of the checked folder..
Can anyone please help me????
Thanks..
hi..
This is my scenario but am not getting any error..
I have two forms form1 and form2,in form1 i have an treeview and in form2 i have checkedlistbox which i am populating as follows:-
Expand|Select|Wrap|Line Numbers
- System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("E:\\Mails");
- System.IO.FileSystemInfo[] files = di.GetDirectories();
- checkedListBox1.Items.AddRange(files);