A
AppleBag
Hello everybody,
I am beginning the .NET learning curve, and I have learned how to load
a listbox with a directory list of files using this code:
If FolderBrowserDialog1.ShowDialog() =
Windows.Forms.DialogResult.OK Then
ListBox1.DataSource =
System.IO.Directory.GetFiles(FolderBrowserDialog1.SelectedPath)
End If
But I do not actually need the listbox to be visible to the user for
what I am trying to do, and I would like to bypass it entirely by
looping through an arraylist or collection instead of looping through a
listbox. (I am going to do a routine that alters each file in the list
later).
So, my question for the pro's is, how would I have the list of files
load up in an arraylist or collection instead of the listbox?
Thank you very much in advance!
I am beginning the .NET learning curve, and I have learned how to load
a listbox with a directory list of files using this code:
If FolderBrowserDialog1.ShowDialog() =
Windows.Forms.DialogResult.OK Then
ListBox1.DataSource =
System.IO.Directory.GetFiles(FolderBrowserDialog1.SelectedPath)
End If
But I do not actually need the listbox to be visible to the user for
what I am trying to do, and I would like to bypass it entirely by
looping through an arraylist or collection instead of looping through a
listbox. (I am going to do a routine that alters each file in the list
later).
So, my question for the pro's is, how would I have the list of files
load up in an arraylist or collection instead of the listbox?
Thank you very much in advance!