Results 1 to 4 of 4

Thread: a question about textbox

  1. #1

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274

    Unhappy

    how can i check if the text entered in a textbox exceeds the limit of the textbox. What i actually mean is that when the multi line option is disabled, then the textbox scrolls horizontally if the limit exceeds. How can i check if this happened (i.e. the textbox scrolled horizontally)

  2. #2

  3. #3
    Member
    Join Date
    Sep 1999
    Location
    Gloucester, UK
    Posts
    33
    You might be better off setting the maxlength property to prevent too much text from being entered.

    Either do it at design time or use this line.

    textbox1.maxlength=60

  4. #4

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274

    Red face

    but i dont want to limit the text, i just want to know if the limit exceeds. thanks MartinLiss, it works just fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width