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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top