Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Let the 1st item in a combobox have the focus
Message
 
À
07/03/2007 14:11:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01201705
Message ID:
01201715
Vues:
20
>>After populating a combobox, How do I have the 1st item in the combobox get the focus(being highlighted). I've tried
>>thisform.mycombobox1.Selected(1)=.t.
>>thisform.mycombobox1.Setfocus
>>
>>to no avail.
>
>Combobox.listindex=1

I wonder why it's still blank?
WITH thisform.mycombobox1
.AddItem( 'N' )
.AddItem( 'Y' )
.AddItem( 'NA' )
ENDWITH
thisform.mycombobox1.listindex=1
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform