locked
How can i make a string in listbox with different colors? RRS feed

  • Question

  • I encountered a ticket that I have to find whether there is a way to make an item in listbox with different color.
    My program is a winform application using C#, VS2005.
    Please notice that I want to have one item with different colors. NOT different items with different colors in listbox. 

    For example: I have an item(a string in Color.Black color) in listbox "The apple is in red." and I want the word "red" in Color.Red color.  

    Does anybody have any solution for this? I need your help....Many thanks in advance!

    Wednesday, April 8, 2009 3:41 PM

All replies

  • I too have the same requirement. Does any body have solution for this requirement????????????

    I'm populating the List Box with a data set which intern filled from a Stored Procedure, The thing im trying to do is,

    I have an item(a string in Color.Black color) in listbox "The apple is in red." and I want the word "red" in Color.Red color(As stated by 'Feal Xu'). 



    Thanks in advance.
    Rananan R
    Monday, July 27, 2009 9:05 AM