Hi, So Basically what I am currently trying to is use a Combobox to change make labels and images either .Show() or .Hide()
These are the item's I have within my ComboBox
![Name: Screenshot_1.jpg
Views: 48
Size: 39.0 KB]()
Let's say I choose the Liverpool item in the combo box like this, how could I get it so it would .show() the labels and image when I have it selected.
![Name: Screenshot_2.jpg
Views: 44
Size: 30.7 KB]()
This is the code I currently have:
Private Sub BookAPod_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'Hiding Images and Text until chosen in list box
lblLiverpoolPod.Hide()
lblManchesterPod.Hide()
lblLondonPod.Hide()
PictureBoxLiverpool.Hide()
PictureBoxManchester.Hide()
PictureBoxLondon.Hide()
txtFeaturesLiverpool.Hide()
txtFeaturesManchester.Hide()
txtFeaturesLondon.Hide()
End Sub
Private Sub cboxPod_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboxPod.SelectedIndexChanged
If cboxPod = Liverpool Then
lblLiverpoolPod.Show()
PictureBoxLiverpool.Show()
txtFeaturesLiverpool.Show()
End If
End Sub
Thank you for reading
These are the item's I have within my ComboBox
Let's say I choose the Liverpool item in the combo box like this, how could I get it so it would .show() the labels and image when I have it selected.
This is the code I currently have:
Private Sub BookAPod_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'Hiding Images and Text until chosen in list box
lblLiverpoolPod.Hide()
lblManchesterPod.Hide()
lblLondonPod.Hide()
PictureBoxLiverpool.Hide()
PictureBoxManchester.Hide()
PictureBoxLondon.Hide()
txtFeaturesLiverpool.Hide()
txtFeaturesManchester.Hide()
txtFeaturesLondon.Hide()
End Sub
Private Sub cboxPod_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboxPod.SelectedIndexChanged
If cboxPod = Liverpool Then
lblLiverpoolPod.Show()
PictureBoxLiverpool.Show()
txtFeaturesLiverpool.Show()
End If
End Sub
Thank you for reading