Any help would be greatful. Thanks.
Last edited by thegenesi; Mar 31st, 2003 at 09:08 PM.
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.
My Site
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
Dim r As New System.Text.RegularExpressions.Regex("\W+") Me.Text = r.Matches(TextBox1.Text, "\W+").Count + 1
Utility to Convert Visual Studio.NET 2003 Project Files Edneeis.com
Forum Rules