CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2009
    Posts
    17

    Question How to make different color in listBox' lines

    Hello everyone! I'm making a simple chat and for displaying messages i use a ListBox
    I'd like that every client'd his own uniq color for his sayings. So how can i make different color in listBox' lines
    thanks

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: How to make different color in listBox' lines

    you will need to use a RichTextBox

  3. #3
    Join Date
    Jun 2008
    Posts
    2,477

    Re: How to make different color in listBox' lines

    You could also owner draw the listbox, but that can be a bit of a pain. I would go with the already suggested RichTextBox solution.

  4. #4
    Join Date
    May 2007
    Posts
    437

    Re: How to make different color in listBox' lines

    ashu
    always use code tag

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: How to make different color in listBox' lines


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured