Can I put the name of folder in listbox?
#####Like that#####
Folder1
File1
File2
Folder2
File1
File2
******Not like that******
C:\Users\a11\Desktop\File1
C:\Users\ b11\Documents\File2
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
anu jaPosted Feb 3, 2020, 11:38 PM
Khargesh RajputPosted Apr 20, 2015, 4:13 AM
int index1 = value.LastIndexOf('/');
if (index1 != -1)
{
string folder= fullpath.Substring(index1);
}
Asp.Net HeinPosted Apr 20, 2015, 1:30 AM
Khargesh RajputPosted Apr 20, 2015, 12:13 AM