>>The way to change the highlighted (selected) item in a list box is to change the selected() index property to true.
>>For example if you want indexed item number 10 to be selected for a list box named list1, do:
>>THISFORM.LIST1.SELECTED(10)=.T.
>>
>Is there a way to set the color of each line of a list box?
> The SelectedItemBackColor and forcolor only apply to the selected /
> active line but do show the ability to color diferenly an individual
> line within a list box. Perhaps making my own sub-classed ListBox?
Hi Jim,
You're probably going to end up simulating a listbox with a grid. With a grid you can easily do what you want.
Good luck
Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!
Support the product. Buy the latest version!
Hugh Winters @ WorldData 408-512-1131