|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a form that has 6 textboxes for the user to key in the description of an item where these descriptions are based on the type of information...for example:
textbox1 is for item name information textbox2 is for item size information textbox3 is for item length information...and so on The complete description of an item must not exceed 100 characters. That is the information for item name + size + length +..... cannot be more than 100 characters... How can i display to the users the counting of each characters that the user type in every boxes...so that the user can estimate their description lenght for each item type? Then when the characters reach 100 the user cannot key in anymore characters in all textboxes. Please help..... ![]() |
|
#2
|
|||
|
|||
|
In every checkboxe's onChange make something like:
NumChars = Len(Textbox1.Text) + Len(TextBox2.Text) + Le... Lebel1.Caption = 100 - NumChars & " characters left" |
|
#3
|
|||
|
|||
|
I think Unkie has the right idea - as for stopping the user from entering data after 100 characters have been typed, add in the OnChange method:
if Label1.caption = "0 Character Left" 'remove the last character entered End If
__________________
~~Macrado~~ |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Counting no of characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|