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. is there a winform label control

is there a winform label control

Scheduled Pinned Locked Moved C#
htmlquestion
6 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.
  • T Offline
    T Offline
    TheCardinal
    wrote on last edited by
    #1

    is there a winform label control that can support HTML tags? I dont want to use richtextbox.:) I have no special talents, I am only passionately curious.Everything that can be counted does not necessarily count; everything that counts cannot necessarily be counted" -(Albert Einstein)

    A 1 Reply Last reply
    0
    • T TheCardinal

      is there a winform label control that can support HTML tags? I dont want to use richtextbox.:) I have no special talents, I am only passionately curious.Everything that can be counted does not necessarily count; everything that counts cannot necessarily be counted" -(Albert Einstein)

      A Offline
      A Offline
      Arjun Mjolnir Bahree
      wrote on last edited by
      #2

      From what i understand, you need a label control and not a textbox. There is no inbuilt control for that for winforms as such. However, on similar lines, you can use this one by Palomraz http://www.codeproject.com/vb/net/rtflabelcp.asp Doe that solve your purpose, or am I not near your question?

      Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

      T 1 Reply Last reply
      0
      • A Arjun Mjolnir Bahree

        From what i understand, you need a label control and not a textbox. There is no inbuilt control for that for winforms as such. However, on similar lines, you can use this one by Palomraz http://www.codeproject.com/vb/net/rtflabelcp.asp Doe that solve your purpose, or am I not near your question?

        Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

        T Offline
        T Offline
        TheCardinal
        wrote on last edited by
        #3

        thanks for the reply :) i have already seen that solution and it seems you have to call an .rtf file to display as the label content. what i wanted is a simple label control that can support HTML tag so when i do this for example: The total transaction for this account is 100,000.00, please be notified. so by doing this i can only select the portion of the sentence to be bold or colored. I have no special talents, I am only passionately curious.Everything that can be counted does not necessarily count; everything that counts cannot necessarily be counted" -(Albert Einstein)

        A 1 Reply Last reply
        0
        • T TheCardinal

          thanks for the reply :) i have already seen that solution and it seems you have to call an .rtf file to display as the label content. what i wanted is a simple label control that can support HTML tag so when i do this for example: The total transaction for this account is 100,000.00, please be notified. so by doing this i can only select the portion of the sentence to be bold or colored. I have no special talents, I am only passionately curious.Everything that can be counted does not necessarily count; everything that counts cannot necessarily be counted" -(Albert Einstein)

          A Offline
          A Offline
          Arjun Mjolnir Bahree
          wrote on last edited by
          #4

          OK now i understand. So for this you can override the label control, and use the EmbedHTML/MapHTML script display inline HTML, which is what RichTextBox uses internally.

          Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

          T 1 Reply Last reply
          0
          • A Arjun Mjolnir Bahree

            OK now i understand. So for this you can override the label control, and use the EmbedHTML/MapHTML script display inline HTML, which is what RichTextBox uses internally.

            Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

            T Offline
            T Offline
            TheCardinal
            wrote on last edited by
            #5

            can you please point me to a link or a demo sample on how to do this? :) or by using the EmbedHTML/MapHTML script display inline HTML for richtextbox. thanks a lot

            A 1 Reply Last reply
            0
            • T TheCardinal

              can you please point me to a link or a demo sample on how to do this? :) or by using the EmbedHTML/MapHTML script display inline HTML for richtextbox. thanks a lot

              A Offline
              A Offline
              Arjun Mjolnir Bahree
              wrote on last edited by
              #6

              OK. The way I did it was by hosting an .htc inside my custom control. This HTc did the trick of acting like a label.

              Excelsior Arjun Bahree "By The Might of Mjolnir" I Came! I Coded! I Conquered!

              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