Counting Files

  • Thread starter Thread starter VB Novice Hendri
  • Start date Start date
V

VB Novice Hendri

Guest
How do I go about counting how meny files is in an spesific folder before loading ther names into a listbox using the code below.

Sub FillRecipeListBox()

Me.RecipeListBox.Items.Clear()
Dim Files() As String = Directory.GetFiles(RecipeFolder)
For Each file As String In Files
RecipeListBox.Items.Add(Path.GetFileName(file))
Next

End Sub

Continue reading...
 
Back
Top