all groups > dotnet windows forms > may 2005 >
You're in the

dotnet windows forms

group:

listbox control - change font color of a single row


listbox control - change font color of a single row pothik05
5/6/2005 7:11:11 AM
dotnet windows forms:
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.

Re: listbox control - change font color of a single row Stoitcho Goutsev (100) [C# MVP]
5/6/2005 7:30:00 PM
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]

[quoted text, click to view]

Re: listbox control - change font color of a single row pothik05
5/8/2005 9:30:03 AM
Thanks. I could make it work.

[quoted text, click to view]
AddThis Social Bookmark Button