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. underline just one word within a lable

underline just one word within a lable

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 3 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.
  • L Offline
    L Offline
    lane0p2
    wrote on last edited by
    #1

    Hi guys, does anyone know how to underline just one word within a lable?

    C N 2 Replies Last reply
    0
    • L lane0p2

      Hi guys, does anyone know how to underline just one word within a lable?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You'd need to create your own control to do that.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • L lane0p2

        Hi guys, does anyone know how to underline just one word within a lable?

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Subclass System.Windows.Forms.Label control and override OnPaint method. Use the graphics object and work with DrawString()[^] method.

        Navaneeth How to use google | Ask smart questions

        L 2 Replies Last reply
        0
        • N N a v a n e e t h

          Subclass System.Windows.Forms.Label control and override OnPaint method. Use the graphics object and work with DrawString()[^] method.

          Navaneeth How to use google | Ask smart questions

          L Offline
          L Offline
          lane0p2
          wrote on last edited by
          #4

          thanks for your help.

          1 Reply Last reply
          0
          • N N a v a n e e t h

            Subclass System.Windows.Forms.Label control and override OnPaint method. Use the graphics object and work with DrawString()[^] method.

            Navaneeth How to use google | Ask smart questions

            L Offline
            L Offline
            lane0p2
            wrote on last edited by
            #5

            i don't suppose you know of any good tutorials on this?

            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