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...
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...