ListBox Text Color


Kindly advice how to make the text color in Listbox.

In Form I have reviewed the some conversation… In that mentioned like that

g.ForeColor = &cFF000000

g ( g as Graphics)

How to create the g?

Help me out from this

add the celltext paint event to your list box

in there set g.forecolor to whatever color you want

return false from that event handler & the text will draw in that color

Thanks Norman Palardy.

Actually I want to change the particular Row only… Above mentioned comment change the color for all rows which was inserted.

If Row = TheRowIWant Then // Place here the Paint in my colour code End If

This code ?


If row=TheRowIWant then g.forecolor=&cff0000

that simple