Notifications
Clear all

[Closed] Setting Listbox item colours?

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
 PEN

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.

.forecolor property will also work on activex listview