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. .NET (Core and Framework)
  4. Resizing the TextBox

Resizing the TextBox

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialquestion
5 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.
  • S Offline
    S Offline
    seanwright
    wrote on last edited by
    #1

    Hello All, Can anyone tell me how to resize a textbox to fit a given string? The textbox must keep the same width and adjusts its height to properly display whatever text I put in it. Thanks!

    S 2 Replies Last reply
    0
    • S seanwright

      Hello All, Can anyone tell me how to resize a textbox to fit a given string? The textbox must keep the same width and adjusts its height to properly display whatever text I put in it. Thanks!

      S Offline
      S Offline
      seanwright
      wrote on last edited by
      #2

      Ok one other thing... I'm thinking of doing something similar with the Label Control as well...

      T 1 Reply Last reply
      0
      • S seanwright

        Ok one other thing... I'm thinking of doing something similar with the Label Control as well...

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

        what language do you use ?


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        S 1 Reply Last reply
        0
        • T toxcct

          what language do you use ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          S Offline
          S Offline
          seanwright
          wrote on last edited by
          #4

          VB.Net

          1 Reply Last reply
          0
          • S seanwright

            Hello All, Can anyone tell me how to resize a textbox to fit a given string? The textbox must keep the same width and adjusts its height to properly display whatever text I put in it. Thanks!

            S Offline
            S Offline
            seanwright
            wrote on last edited by
            #5

            Found a solution that should work nicely: http://www.dotnet247.com/247reference/msgs/43/216202.aspx

            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