View Single Post
  #1 (permalink)  
Old 08-11-2008, 05:57 PM
mike2ppc mike2ppc is offline
Junior Member
 
Join Date: Feb 2008
Location: Germany
Posts: 11
Default TextBox limit number of digit to enter

Hello,

does somebody know to limit in a TextBox possible digits
e.g.

Form1 - TextBox1

Sub TextBox1_KeyPress (key)
If StrLength(textbox1.Text)>3 Then
key=""
End If
End Sub

I want to limit the Textbox to max. 3 digits, is this possible.

Best Regards

Michael
Reply With Quote