Search Tools Links Login

[ A program to count the number of characters in a TextBox. ]


This simple little program will count the number of characters in a TextBox. Please leave your comments and votes, thanks :)

Original Author: JamesJD

Inputs

One TextBox, one Label, and two CommandButtons. (You just need to keep their default names).

Returns

The number of characters entered into the TextBox.

Code

Sub Clear()
  Text1.Text = ""
  Label1.Caption = "Characters: "
  Text1.SetFocus
End Sub
Private Sub Command1_Click()
  Label1.Caption = "Characters: " & Str$(Len(Text1.Text))
  Text1.SetFocus
End Sub
Private Sub Command2_Click()
  Call Clear
End Sub

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 96 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.