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. Web Development
  3. ASP.NET
  4. Multiline textbox scrollbar

Multiline textbox scrollbar

Scheduled Pinned Locked Moved ASP.NET
helpquestion
2 Posts 1 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.
  • C Offline
    C Offline
    cje
    wrote on last edited by
    #1

    I have a textbox set to multiline so that I can display long strings that wrap. I know that they will never be more than 3 lines long so I want to size the control so that I don't have a scrollbar. I size the control but I can't get rid of the vertical scroll bar. Can anyone help? it seems as if I am missing something right in front of my face but can't seem to find it! thanks in advance CJE

    C 1 Reply Last reply
    0
    • C cje

      I have a textbox set to multiline so that I can display long strings that wrap. I know that they will never be more than 3 lines long so I want to size the control so that I don't have a scrollbar. I size the control but I can't get rid of the vertical scroll bar. Can anyone help? it seems as if I am missing something right in front of my face but can't seem to find it! thanks in advance CJE

      C Offline
      C Offline
      cje
      wrote on last edited by
      #2

      I finally figured it out. If I use a label instead of a textbox then I can size the control and have the text wrap without a scroll bar showing up. I knew it had to be something really basic!

      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