Sélection ligne ComboBox

cs_roger81 Messages postés 12 Date d'inscription mercredi 22 mars 2006 Statut Membre Dernière intervention 13 juin 2006 - 27 mai 2006 à 16:37
cs_coq Messages postés 6350 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 - 27 mai 2006 à 17:15
Voila mon probleme j'ai cherché un peu partout mais je n'ais pas trouvé ce qu'il me fallait.
j'aimerais savoir comment je fait pour sélectionner une ligne de ma comboBox

je sais que pour certain ceci doit etre simple mais ça fait un ptit moment que j'essaye des truc et rien n'y fait

voila merci

3 réponses

cs_coq Messages postés 6350 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
27 mai 2006 à 16:53
Salut,

Notamment en affectant l'index de l'item a sélectionner à la propriété SelectedIndex.

/*
coq
MVP Visual C#
*/
0
cs_roger81 Messages postés 12 Date d'inscription mercredi 22 mars 2006 Statut Membre Dernière intervention 13 juin 2006
27 mai 2006 à 17:09
peut tu me dire la différence entre SelectedIndex et SelectedItem ?
0
cs_coq Messages postés 6350 Date d'inscription samedi 1 juin 2002 Statut Membre Dernière intervention 2 août 2014 101
27 mai 2006 à 17:15
SelectedIndex est l'index de l'item alors que SelectedItem est l'item en lui même.

ComboBox
ComboBox.SelectedItem
ComboBox.SelectedIndex

/*
coq
MVP Visual C#
*/
0
Rejoignez-nous