Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
ComboBox Question
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01352049
Message ID:
01352049
Vues:
74
I'm loading a ComboBox:
cboType.Items.Add("Book");
cboType.Items.Add("CD");
cboType.Items.Add("DVD");
cboType.Items.Add("Periodical");
cboType.Items.Add("Tape");
The I want to set it's selected index:
cboType.SelectedIndex = iItem;
This errors because cboType.Items.Count is zero.

What's wrong here?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform