Hi all i got a textbox that user types a name. I want some how show the number of characters shown in label during user typing and warn him if he exceed for example 10 characters or disable typing.could any one show me how this can done.
Printable View
Hi all i got a textbox that user types a name. I want some how show the number of characters shown in label during user typing and warn him if he exceed for example 10 characters or disable typing.could any one show me how this can done.
You can set the max count on your textbox to 10.
Or use. len(textbox1.text) to do a char count
Code:Private Sub Text1_Change()
Label1.Caption = Len(Text1.Text)
End Sub