Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Multicolor Text in Textbox OR Listbox

Multicolor Text in Textbox OR Listbox

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Fritzius
    wrote on last edited by
    #1

    Hello, I'm trying to figure out how to display lines of text with more than one color. Seems like anytime I want to change text color for a word in a string, I can't, because all the text changes to that color. If you need an example, consider something like AOL Instant Messenger. The person sending the message has their name in one color, and the receiver has a differently colored name. Can the standard Textbox control pull this off? Short of that, is there some kind of custom control that can do this operation? Thanks, Michael Fritzius

    A 1 Reply Last reply
    0
    • M Michael Fritzius

      Hello, I'm trying to figure out how to display lines of text with more than one color. Seems like anytime I want to change text color for a word in a string, I can't, because all the text changes to that color. If you need an example, consider something like AOL Instant Messenger. The person sending the message has their name in one color, and the receiver has a differently colored name. Can the standard Textbox control pull this off? Short of that, is there some kind of custom control that can do this operation? Thanks, Michael Fritzius

      A Offline
      A Offline
      ARon_
      wrote on last edited by
      #2

      http://www.codeproject.com/KB/cs/eRichTextBox.aspx[^]

      ARon

      M 1 Reply Last reply
      0
      • A ARon_

        http://www.codeproject.com/KB/cs/eRichTextBox.aspx[^]

        ARon

        M Offline
        M Offline
        Michael Fritzius
        wrote on last edited by
        #3

        I love one-liners. This was exactly what I was looking for. Now to dissect it and toss the rest Thanka you, Michael Fritzius

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups