Different Forecolor in listbox

How do I add listbox forecolor differently on each line ?

For example, line1 is red, line2 is black, line3 is red, line4 is black and so on.

Is there a trick ? Is that possible ?

Thanks !

[201 byte] By [Tan.NetCF] at [2007-12-16]
# 1
With netcf v1.0 this is not possible. You need to create your own listcontrol or start with the one in the SDF from opennetcf:
http://vault.netcf.tv/VaultService/VaultWeb/Blame.aspx?repid=2&path=%24%2fSDF%2fOpenNETCF.Windows.Forms%2fListBoxEx.cs&version=2&includedversions=20
(guest, guest)

With netcf v2.0, you can use a ListView instead and ListViewItem supports both ForeColor and BackColor.

Cheers
Daniel

DanielMoth at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Thanks. I used listview, and it work just find.
Tan.NetCF at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...