listbox control - change font color of a single row

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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]
 
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
 
Back
Top