Results 1 to 2 of 2

Thread: stop user from keying

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    stop user 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 Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.     Me.Text1.MaxLength = 5
    5.  
    6. End Sub

    hope this helps

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