Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i do set combobox entry keyboard down key sequen
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01503687
Message ID:
01504415
Vues:
25
>HI all,
>i have a special problem ...... i have combobox no use databindings then store the value is name
>One
>Two
>Thre
>Four
>Five
>
>And i have textbox use databindings then use sql connect the combobox display the code
>
>CmboStkname.Items.Insert(0, "One")
>CmboStkname.Items.Insert(1, "Two")
>CmboStkname.Items.Insert(2, "Three")
>CmboStkname.Items.Insert(3, "Four")
>CmboStkname.Items.Insert(4, "Five")
>
>
>I add the first record, then i entry the keyboard down key...... so the combostkname show One is ok
>After i add the second record, my combobox.text is empty.....then i also entry the keyboard down key........
>it display Two, should show One.......
>And After i add the third record, my combobox.text is empty ......then i also entry the keyboard down key.............
>it display Three , should show One
>
>I want to combox entry keyboard down must display One ............ how can i do, thx ?
>Anyone know this what problem ?
If your combo box is bound to data, it should be reset each time you add a new row and should display One, as you say. If your combo box is not bound to data, I suspect that it is retaining the last value selected. You probably need to do something like set the SelectedIndex property to -1, which means nothing is selected.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform