On Thu, 7 Oct 2004 16:08:49 +0200, Thomas Bender
<Th***********@de.Bosch.com> wrote:
Hi,
i'm new to C# and tray to count the files in a "FileListBox",
please help, thanks.
Thommy
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:\\") );
--
Happy Coding!
Morten Wennevik [C# MVP]