foreach (string file in files)
{
int pos = file.LastIndexOf("\\"); string fname = file.Substring(pos + 1); listBox1.Items.Add(fname);
}
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.
Amit GuptaPosted Nov 10, 2018, 1:40 AM
Sriram RamkiPosted Nov 10, 2018, 12:53 AM
Amit GuptaPosted Nov 10, 2018, 12:37 AM
Sriram RamkiPosted Nov 10, 2018, 12:31 AM
Amit GuptaPosted Nov 10, 2018, 12:28 AM
Sriram RamkiPosted Nov 10, 2018, 12:24 AM
Amit GuptaPosted Nov 10, 2018, 12:19 AM