Bonjour;

j'ai cherche partout, je ne trouve pas et je ne sais pas
dans ma form1 j'ai glissé combobox1

dans la propriete: items (collections) j'ai ajouter trois valeurs: david, adrian, nicola

dans mon code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 
{
 
         MessageBox.Show(comboBox1.SelectedValue.ToString);
 
}
ça marche pas, je veux juste quand je choisi david, le message box affiche 'David', c'est tout et ça marche pas

help SVP help