List Box item coloring
-
I am retrieving data from database with list Box control. I like to show different items are different color depending upon condition. For example if I presenting student name in list box, when populating all student name, the student name who passed show in green color and who failed in red color. Please provide help in vb.bet.
-
I am retrieving data from database with list Box control. I like to show different items are different color depending upon condition. For example if I presenting student name in list box, when populating all student name, the student name who passed show in green color and who failed in red color. Please provide help in vb.bet.
Hi, This article[^] demonstrates the nice things a ListBox can do. It is C# code, but the same applies to VB.NET In essence, the listed items don't have to be strings, they could be any kind of object; and a ListBox supports user-drawing, so you decide how things look. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|