char[] holdchars = { ' ', '\r', '\n' }; string[] strs = txtstory.Text.Split(holdchars, StringSplitOptions.RemoveEmptyEntries); txttotalwords.Text = strs.Length.ToString();
char[] holdchars = { ' ', '\r', '\n' }; string[] strs = txtstory.Text.Split(holdchars,StringSplitOptions.RemoveEmptyEntries); //txttotalwords.Text = strs.Length.ToString(); int intValue = (strs.Count())*10; txttotalwords.Text = intValue.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)