General information
Category:
Coding, syntax & commands
Environment versions
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only