Results 1 to 2 of 2

Thread: stoping from keying

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    stoping from keying

    how do i stop a user from entering more than a number of char in a textbox?
    ie if number is a variable =5
    means that user can only keying 5 chars at most and being 'block' after that in the textbox...but with the focus still set on the textbox.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    The textbox has MaxLength property you can set.
    Then it will automatically do the rest for you.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

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