I need to give a folder as input to the listbox and retrive the files in that folder to the listbox with some filterations.
Can anyone help me with the code???
I tried with the below code. I didn't give any filterations. i named the listbox as listlog.
But when executing the package, its showing empty listbox only.
private void listlog_SelectedIndexChanged(object sender, EventArgs e)
{
string[] files = Directory.GetFiles("D:\\General");
foreach (string i in files)
{
listlog.Items.Add(i);
}

Guest UserRank #816 · 2.8K reputationPosted Apr 21, 2015, 4:40 AM EDT
Sabari Prabu10 reputationPosted Apr 27, 2015, 9:47 PM EDT