General information
Title:
MultiSelect ListBox
Hi!
I have a ListBox with MultiSelect = .T.
and in the Click event of a CommandButton I loop through all Items and Select them.
*-- Start of Command1.Click
Local lnCnt
for lnCnt = 1 to ThisForm.List1.ListCount
ThisForm.List1.Selected(lnCnt) = .T.
next
*-- End of Command1.Click
This works fine and selects/highlights all the Items in the ListBox (when I click the CommandButton) but as soon as I Click on the ScrollBar (to scroll Up/Down) of that ListBox all the Items become unselected (HighLighting is removed) I don't want that to happen. The user should be able to scroll up and or down without unselecting the Items in the ListBox.
I not sure if this is a bug or the normal behaviour of a MultiSelect List Box.
Thanks.
Sarosh
Next
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