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
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:
01352068
Vues:
28
I moved the code from the Load to the Constructor after the Init code, and now it all works fine.


>>
>>That's exactly the problem - Items.Count is zero. The combo is loaded in the form's Load. The SelectedIndex is being set in a Setup method called later.
>
>The Items collection must be getting cleared somehow between those two points - the syntax you showed definitely will work. Are you doing any other kind of data binding to this control?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform