Any help would be greatful.
Thanks.
Printable View
Any help would be greatful.
Thanks.
Store the text in a string, split the string using a space as the delimiter, the resulting array count will be how many words are in the textbox.
Thank you,
Perhaps could you give an example?
You can use RegularExpressions too.
VB Code:
Dim r As New System.Text.RegularExpressions.Regex("\W+") Me.Text = r.Matches(TextBox1.Text, "\W+").Count + 1