how to add folder to a listbox in .net?
- by shruti
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??