View Full Version : Setting Listbox item colours?

05 May 2008, 07: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?

05 May 2008, 12:20 PM
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.

05 May 2008, 12:59 PM
.forecolor property will also work on activex listview

CGTalk Moderation
05 May 2008, 12:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.