Listbox colors
-
Is there an easy way to alternate forecolors in a listbox simular to datagrids in vb.net ???
silver-gray
-
Is there an easy way to alternate forecolors in a listbox simular to datagrids in vb.net ???
silver-gray
Silver-Grey wrote:
Is there an easy way
What's easy for us may not be easy for you. There is no support for this built into the ListBox control, so you'd either have to find a replacement control that supports this, or create your own ListBox control and ownerdraw the ListBox to get this effect. Since you'd have to supply the Fore/BackColor's for the even and odd rows, you'd probably want to start by creating your own ListBox class so you can expose these properties. You can Google for "ownerdraw listbox vb[^] for examples.
Dave Kreskowiak Microsoft MVP - Visual Basic