FileListBox

  • Thread starter Thread starter Thomas Bender
  • Start date Start date
T

Thomas Bender

Hi,

i'm new to C# and tray to count the files in a "FileListBox",
please help, thanks.

Thommy
 
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:\\"));
 
Back
Top