Notifications
Clear all
[Closed] Setting Listbox item colours?
May 29, 2008 8:19 am
Is it possible to change/set the colour of listbox items, or do I need to use a dotNET ListView. If i need to use dotNET, how do I set the colours?
Cheers,
Jordan
2 Replies
May 29, 2008 8:19 am
You need to use dotNet listView. You can set the colors with
lv.items.item[i].foreColor=(dotNetClass "System.Drawing.Color").blue
Where i is the index of the item in the list. Remember that dotNet arrays are 0 based so 0 is the frist in the array.