T Thomas Bender Oct 7, 2004 #1 Hi, i'm new to C# and tray to count the files in a "FileListBox", please help, thanks. Thommy
M Morten Wennevik Oct 7, 2004 #2 Hi, i'm new to C# and tray to count the files in a "FileListBox", please help, thanks. Thommy Click to expand... Hi Thomas, It's a little bit unclear what you are trying to do. Do you mean you want to fill a ListBox with files? You can get a list of files from a directory using Directory.GetFiles() Something like this will fill a ListBox with all files in the c:\ directory listBox1.Items.AddRange(Directory.GetFiles("C:\\"));
Hi, i'm new to C# and tray to count the files in a "FileListBox", please help, thanks. Thommy Click to expand... Hi Thomas, It's a little bit unclear what you are trying to do. Do you mean you want to fill a ListBox with files? You can get a list of files from a directory using Directory.GetFiles() Something like this will fill a ListBox with all files in the c:\ directory listBox1.Items.AddRange(Directory.GetFiles("C:\\"));