Color coded listbox

  • Thread starter Thread starter Brent Hoskisson
  • Start date Start date
B

Brent Hoskisson

Does anyone know where I can find a listbox control for
VB.NET where the items in the can be color coded.

Thanks
Brent
 
Does anyone know where I can find a listbox control for
VB.NET where the items in the can be color coded.

Thanks
Brent

Brent...

It's pretty trivial to do this your self. Just set the
listbox's DrawMode property to DrawMode.OwnerDrawFixed (or
DrawMode.OwnerDrawVariable if you want to make items of various sizes)
and then catch the DrawItem event.

There is a simple example int he docs of handling this event:

ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfsystemwindowsformsdrawmodeclasstopic.htm

HTH
 
Back
Top