Checked Listbox recuperer data ?

Résolu
iian2 Messages postés 103 Date d'inscription jeudi 10 novembre 2005 Statut Membre Dernière intervention 21 septembre 2007 - 6 août 2007 à 18:57
soussous78 Messages postés 47 Date d'inscription mardi 21 novembre 2006 Statut Membre Dernière intervention 5 novembre 2016 - 16 oct. 2009 à 15:56
Allo,

Metons que j,ai une checked listbox pis une listbox

exemple:

checkedlistbox:

cocher ian
val
cocher eric
paul
cocher arnol

listbox qui est a coter de ma checked listbox

quebec
montreal
ste-foy
val-b
st-hubert

Comment je fais pour recuperer les infos des elements qui sont cochoer ?

Jaimerais aussi pouvoir recuperer le lieux aussi qui coresponds a litems cocher ?

un gros Merci davance

Ian

4 réponses

iian2 Messages postés 103 Date d'inscription jeudi 10 novembre 2005 Statut Membre Dernière intervention 21 septembre 2007
6 août 2007 à 21:12
jai trouver merci

ian
3
sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 37
7 août 2007 à 08:51
c'est bien d'avoir trouvé... mais tu as le droit de dire comment tu as résolu ton problème.
Après tout, d'autres personnes pourraient être intéressées !

Sébastien FERRAND (blog)
Consultant Indépendant
[Microsoft Visual C# MVP]
0
soussous78 Messages postés 47 Date d'inscription mardi 21 novembre 2006 Statut Membre Dernière intervention 5 novembre 2016
16 oct. 2009 à 15:52
Pour info :
foreach(int indexChecked in checkedListBox1.CheckedIndices)
{
MessageBox.Show(indexChecked.ToString());
}
0
soussous78 Messages postés 47 Date d'inscription mardi 21 novembre 2006 Statut Membre Dernière intervention 5 novembre 2016
16 oct. 2009 à 15:56
ou plus encore :
foreach(int indexChecked in checkedListBox1.CheckedIndices)
{ MessageBox.Show(checkedListBox1.Items[indexChecked].ToString());
}
0
Rejoignez-nous