newbie question here - getting directory contents

  • Thread starter Thread starter ¤
  • Start date Start date
¤

¤

I haven't programmed in quite a while and now I'm trying to do something
that I haven't done before...
I'm interested in looking in a folder and taking the name of every file in
that folder and adding it to a combo box...
what would be the easiest way to accomplish this task at runtime?

Dr Hangman
 
¤ said:
I haven't programmed in quite a while and now I'm trying to do
something that I haven't done before...
I'm interested in looking in a folder and taking the name of every
file in that folder and adding it to a combo box...
what would be the easiest way to accomplish this task at runtime?

Dr Hangman

<F1>
Visual Studio.NET
Visual Basic and Visual C#
Reference
Visual Basic language
Visual Basic Language Tour
-> Processing drives, folders and files
.NET Framework
Programming with .NET Framework
-> Working with I/O
 
Hello,

¤ said:
I haven't programmed in quite a while and now I'm trying
to do something that I haven't done before...
I'm interested in looking in a folder and taking the
name of every file in that folder and adding it to a
combo box... what would be the easiest way to
accomplish this task at runtime?

\\\
Me.ComboBox1.DataSource = _
System.IO.Directory.GetFiles("C:\WINDOWS")
///

Related Topics:

http://www.mvps.org/dotnet/dotnet/samples/filesystem/
-> "RecursiveFileScan"
 
Chris,
In this business you don't have to remember what you learned, remember where
you did read it.
That is what Herfried does.
Cor
 
Hello,

Cor said:
In this business you don't have to remember what you
learned, remember where you did read it.
That is what Herfried does.

I use the computer as external memory. And I use a wireless connection
(Bluetooth) now instead of the USB connection. So I don't need any patches
any more on my head. I have sold the USB brainconnector to Fergus now.

;-)
 
Back
Top