how to add folder to a listbox in .net?
Posted
by shruti
on Stack Overflow
See other posts from Stack Overflow
or by shruti
Published on 2010-03-25T06:13:59Z
Indexed on
2010/03/25
6:23 UTC
Read the original article
Hit count: 392
i have a list box and i want to add a folder/directory to that which is at the specified location i have used the code
string path = "E:\\shruti\\MyDir";
DirectoryItem folder = new DirectoryItem(path);
lstBurnItems.Items.Add(folder); //add folder to listbox
but its not working fine... what should i do to get success??
© Stack Overflow or respective owner