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. textbox problem

textbox problem

Scheduled Pinned Locked Moved C#
helpquestion
3 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.
  • B Offline
    B Offline
    biaali
    wrote on last edited by
    #1

    how can i underline a text in the text box .. the way it is done in the Ms.word to indicate spell error bia

    R D 2 Replies Last reply
    0
    • B biaali

      how can i underline a text in the text box .. the way it is done in the Ms.word to indicate spell error bia

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Here's one way:

      myTextBox.Font = new Font ("Tahoma", 8, FontStyle.Underline);

      /ravi

      This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • B biaali

        how can i underline a text in the text box .. the way it is done in the Ms.word to indicate spell error bia

        D Offline
        D Offline
        Drew McGhie
        wrote on last edited by
        #3

        Like the other two examples have said, you need to update the Font's underline characteristic. With a Textbox, however, you cannot underline specific text, just all or none. RichTextBoxes allow other functionality. Check out the MSDN pages on them if you'd like more information.

        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