PDA

View Full Version : Setting Listbox item colours?


Jordo
05-29-2008, 08: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

PEN
05-29-2008, 01: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.

abyjoe
05-29-2008, 01:59 PM
.forecolor property will also work on activex listview

CGTalk Moderation
05-29-2008, 01: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.