Home All Groups Group Topic Archive Search About

Multi colored listbox

Author
14 Jun 2006 12:37 PM
Domac
Hi,


Can I change color for each row in listbox???

Thanx!

Author
14 Jun 2006 1:31 PM
Larry Lard
Domac wrote:
> Hi,
>
>
> Can I change color for each row in listbox???

Yes. Look in the documentation for the ListBox.DrawMode property.

--
Larry Lard
Replies to group please
Author
14 Jun 2006 5:28 PM
Herfried K. Wagner [MVP]
"Domac" <d*@dd.cc> schrieb:
> Can I change color for each row in listbox???

You may want to use a listview or treeview control instead.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
14 Jun 2006 9:11 PM
GhostInAK
Hello Herfried K. Wagner [MVP],

How can you say that?  Domac gave no indication of the use or purpose of
what it's doing.. just simply "Can such-n-such be done?".  How can you possibly
suggest an alternative control if you dont know what the control is being
used for?  And don't give me that "a listview or treeview is always better"
crap.  The listbox, listview, and treeview all have their appropriate uses.

-Boo

Show quoteHide quote
> "Domac" <d*@dd.cc> schrieb:
>
>> Can I change color for each row in listbox???
>>
> You may want to use a listview or treeview control instead.
>
Author
14 Jun 2006 9:25 PM
Herfried K. Wagner [MVP]
"GhostInAK" <ghosti***@gmail.com> schrieb:
> How can you say that?  Domac gave no indication of the use or purpose of
> what it's doing.. just simply "Can such-n-such be done?".  How can you
> possibly suggest an alternative control if you dont know what the control
> is being used for?

Huh?  What's the problem?  I just showed an alternative which requires less
code because the functionality the OP wants to archieve is already
predefined. Neither you nor I exactly know the exact scenario the OP is
talking about.

> And don't give me that "a listview or treeview is always better" crap.

I don't know why you have the perception that I would give an answer like
this.

> The listbox, listview, and treeview all have their appropriate uses.

ACK.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>