P
Pete Davis
Well, first of all, FileListBox is a VB6 construct, which has nothing to do
with C#.
The .NET equivalent that you should use are the OpenFileDialog or
SaveFileDialog classes.
These also have no way to get the number of files in a directory, largely
because it's generally irrelevant to the job of providing the user with an
interface to choose a file from.
On the other hand, using the Directory.GetFiles() method, you can get an
array of files in a directory and you can then get the length of the array
to know the count.
Pete
with C#.
The .NET equivalent that you should use are the OpenFileDialog or
SaveFileDialog classes.
These also have no way to get the number of files in a directory, largely
because it's generally irrelevant to the job of providing the user with an
interface to choose a file from.
On the other hand, using the Directory.GetFiles() method, you can get an
array of files in a directory and you can then get the length of the array
to know the count.
Pete