WPF Problème ComboBox
Fermé
Reisors
Messages postés
153
Date d'inscription
lundi 11 février 2008
Statut
Membre
Dernière intervention
4 septembre 2013
-
19 mai 2013 à 17:26
INGE2222 Messages postés 2 Date d'inscription vendredi 24 mai 2013 Statut Membre Dernière intervention 24 mai 2013 - 24 mai 2013 à 16:34
INGE2222 Messages postés 2 Date d'inscription vendredi 24 mai 2013 Statut Membre Dernière intervention 24 mai 2013 - 24 mai 2013 à 16:34
A voir également:
- WPF Problème ComboBox
- Rodem notifier wpf - Forum Virus / Sécurité
- Combobox vba ✓ - Forum VB / VBA
- Combobox vba liste déroulante dynamique ✓ - Forum Excel
- Combobox javascript - Forum Javascript
- Remplir combobox vba ✓ - Forum Excel
1 réponse
INGE2222
Messages postés
2
Date d'inscription
vendredi 24 mai 2013
Statut
Membre
Dernière intervention
24 mai 2013
24 mai 2013 à 16:34
24 mai 2013 à 16:34
public MainWindow()
{
InitializeComponent();
comboBox1.Items.Add("Tea");
comboBox1.Items.Add("Orange");
comboBox1.Items.Add("Milk");
comboBox1.Items.Add("Iced Tea");
comboBox1.Items.Add("Mango Shake");
comboBox1.SelectedIndex = 1;
}
Alors :
Si comboBox1.SelectedIndex = 0; ... combobox affiche "Tea"
Si comboBox1.SelectedIndex = 1; ... combobox affiche "Orange" ....
{
InitializeComponent();
comboBox1.Items.Add("Tea");
comboBox1.Items.Add("Orange");
comboBox1.Items.Add("Milk");
comboBox1.Items.Add("Iced Tea");
comboBox1.Items.Add("Mango Shake");
comboBox1.SelectedIndex = 1;
}
Alors :
Si comboBox1.SelectedIndex = 0; ... combobox affiche "Tea"
Si comboBox1.SelectedIndex = 1; ... combobox affiche "Orange" ....