My mistake, I have suppose that we can see the selected items even if the list was disabled.
After a little test, I see that the list does not show any selected items, so I change my mind and came with the when() solution.
BTW, in any case I have sugested that you can set the color for each selected items individually.
>Correct (except I think he is selecting multiple items). I don't see how you can change the disabled colors of indiviual items in the list, without using a grid.
>
>But you have given him his solution elsewhere ;)
>
>>No, but if you read the question, it was about keeping the user off the list while programaticaly selecting one item at time in a loop...
>>
>>
>>>Can you do that for individual items? Perhaps if the rowSourceType is popup, but I dunno.
>>>
>>>>Keep the listbox disabled but change the disablebackcolor and disableforecolor :-)
>>>>
>>>>
>>>>
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca