Condition ComboBox VB.Net
pictom41
Messages postés
537
Statut
Membre
-
mathsroller97 -
mathsroller97 -
J'ai un problème avec mes ComboBox, je vous fais voir le code :
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
If ComboBox1.SelectedValue = "Lady Gaga" Then
ComboBox2.Items.Add("Alejandro")
End If
End Sub
Sauf que quand je choisis Lady Gaga dans la combobox 1, je n'ai pas Alejandro dans la 2ème combobox.
Il y aurait t'il un raté dans ma condition ?
Ou autre ?
Cordialement
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
If ComboBox1.SelectedValue = "Lady Gaga" Then
ComboBox2.Items.Add("Alejandro")
End If
End Sub
Sauf que quand je choisis Lady Gaga dans la combobox 1, je n'ai pas Alejandro dans la 2ème combobox.
Il y aurait t'il un raté dans ma condition ?
Ou autre ?
Cordialement
A voir également:
- Condition ComboBox VB.Net
- Excel cellule couleur si condition texte - Guide
- Excel condition ou - Guide
- Condition optimale téléphone ✓ - Forum Mobile
- Excel champ calculé avec condition - Forum Excel
- Nbval avec condition - Forum Excel