Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>>Hi Gang!
>>
>>I want to be able to programatically select the 1st item in a ListBox.
>>
>>e.g.
>>
>>In the ListBox are Dog,Cat,Bird,Hamster
>>
>>I want the program to go get the 1st item.. which is Dog.
>>
>>What would you code to this?
>>
>>Thanks
>
>Let me add to this.... what I wanted to say was that I wanted to get programatically the same result as if I clicked on the control and selected the 1st item.
>
>So I want to "click" on the item and then do an ListBox.InteractiveChange.
Set the list's ProgrammaticChange to call InteractiveChange (or better, add a custom AnyChange method and have PC and IAC both call it).
Then:
This.ListIndex = 1
sets the value and fires ProgrammaticChange.
Tamar
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement