Hi!
Thanks for the reply.
It seems to be a bug but I think I found a work around.
If in my CommandButton1.Click event I SetFocus to the ListBox and then loop through and mark all items as selected and then click on the scrollbars of the ListBox it seems to be working ok.
*-- Start of CommandButton1.Click
Local lnCnt
With ThisForm.ListBox1
.SetFocus()
for lnCnt = 1 to .ListCount
.Selected(lnCnt) = .T.
next
Endwith
*-- End of CommandButton1.Click
Sarosh
>I know that problem. It appears when the RowSourceType property of your
>the listbox is NOT (None or Value) - by example if you choose Alias.
>Also, I think that depends the number of items in the list. Try with 10
>or 20 items only. If it's a bug, it is there since version 3.0.
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