Combobox

Résolu
Birkin VB Messages postés 26 Date d'inscription vendredi 25 mai 2007 Statut Membre Dernière intervention 25 octobre 2009 - 16 août 2009 à 07:49
Birkin VB Messages postés 26 Date d'inscription vendredi 25 mai 2007 Statut Membre Dernière intervention 25 octobre 2009 - 16 août 2009 à 14:47
Bonjour voila dans ma form g un combox1 ou g ajouter des item

combox1.AddItem "a"
combox1.AddItem "b"
combox1.AddItem "c"

je voudré savoir comment faire pour que quand je clike sur ma command1
de a il passe a b

merci birkin VB

2 réponses

PCPT Messages postés 13272 Date d'inscription lundi 13 décembre 2004 Statut Membre Dernière intervention 3 février 2018 47
16 août 2009 à 09:09
salut,

Private Sub Command1_Click()
    With Combo1
        If Not .ListIndex .ListCount - 1 Then .ListIndex .ListIndex + 1
    End With
End Sub


++
[hr]
3
Birkin VB Messages postés 26 Date d'inscription vendredi 25 mai 2007 Statut Membre Dernière intervention 25 octobre 2009
16 août 2009 à 14:47
merci PCPT sa marche
3
Rejoignez-nous