Dynamically size height of TextBox

Discussion in 'ASP .Net' started by vbMark, Nov 23, 2006.

  1. vbMark

    vbMark Guest

    Hello,

    I am putting text into a TextBox from a database. The text is different
    lengths.

    I would like to size the TextBoxes automatically to the hight necessary to
    see all of the text.

    Does anybody know how to do this?

    Thanks!

    --
    Only the Best Freeware at http://www.vbmark.com
    vbMark, Nov 23, 2006
    #1
    1. Advertising

  2. hm..
    get the length of the text .Sure u can do textbox.length
    and then use it to determine the size of the textboxes height etc..
    Patrick

    "vbMark" <> wrote in message
    news:Xns9883E167CB545vbMark@199.45.49.11...
    > Hello,
    >
    > I am putting text into a TextBox from a database. The text is different
    > lengths.
    >
    > I would like to size the TextBoxes automatically to the hight necessary to
    > see all of the text.
    >
    > Does anybody know how to do this?
    >
    > Thanks!
    >
    > --
    > Only the Best Freeware at http://www.vbmark.com
    Patrick.O.Ige, Nov 23, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZGF2aWQ=?=
    Replies:
    7
    Views:
    881
    Swanand Mokashi
    Apr 5, 2006
  2. Replies:
    0
    Views:
    550
  3. Wotney
    Replies:
    1
    Views:
    530
    Flinky Wisty Pomm
    Oct 25, 2006
  4. tshad
    Replies:
    1
    Views:
    1,689
    bruce barker
    Mar 8, 2007
  5. JC

    textbox height = containing cell height - x

    JC, Jul 29, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    179
    DujHoD
    Aug 2, 2004
Loading...

Share This Page