listbox text

When a row is selected, in a standard listbox, the row text is reversed to white.
If I give color to a text in a column, with CellTextPaint, for example
if mycolumn
g.ForeColor = color.Blue

Then when a row is selected, the text in this column is not converted to white, and it’s not readable.
Is there a way to control the text color when a row is selected?

return true in CellTextPaint
and draw it all yourself in CellBackgroundPaint (besure to return true there as well)

this way you can control EVERYTHING including the background color for both selected and non-selected cells

Thanks Dave, I’ll investigate

if me.selected( row ) = false then g.forecolor = color.blue