listbox control - change font color of a single row

G

Guest

Hello

I have a listbox on a winform. Based on some event at run time I want to
change the color of a row in the listbox. I will appreciate if anyone can
give me any idea how to do that.

Thanks
 
S

Stoitcho Goutsev \(100\) [C# MVP]

pothik05,

I guess all you need to do is to select the row. Look at SelectedIndex and
SelecteItem properties


HTH
Stoitcho Goutsev (100) [C# MVP]
 
G

Guest

Thanks. I could make it work.

Stoitcho Goutsev (100) said:
pothik05,

I guess all you need to do is to select the row. Look at SelectedIndex and
SelecteItem properties


HTH
Stoitcho Goutsev (100) [C# MVP]

pothik05 said:
Hello

I have a listbox on a winform. Based on some event at run time I want to
change the color of a row in the listbox. I will appreciate if anyone can
give me any idea how to do that.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top