GetFile Problem

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

VB Novice Hendri

Guest
I am atemting to use the "Directory.GetFiles" statement with the SelectedItem or Text from SubCategoryComboBox included.

Pleas help me by rectifying the nesasiry line.


Private Sub SubCategoryComboBox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles SubCategoryComboBox.SelectedIndexChanged

TitleListBox.Items.Clear()
Select Case SubCategoryComboBox.Text
'Smaaklik Tuisgemaakte Drankies
Case Is = "Koue Drankies"

Case Is = "Melk Drankies"

Case Is = "Warm Drankies"

'Hoofgeregte
Case Is = "Eiergeregte"

Case Is = "Heerlike Sop Resepte"
Me.TitleListBox.Items.Clear()
Dim Files() As String = Directory.GetFiles(HoofgeregteFolder, Me.SubCategoryComboBox.Text.ToString)
For Each file As String In Files
TitleListBox.Items.Add(Path.GetFileNameWithoutExtension(file))
Next

Continue reading...
 

Similar threads

V
Replies
0
Views
108
VB Novice Hendri
V
V
Replies
0
Views
131
VB Novice Hendri
V
V
Replies
0
Views
120
VB Novice Hendri
V
V
Replies
0
Views
139
VB Novice Hendri
V
Back
Top