X=0 For i = 0 To TextBoxLength – 1 X=x+1 If ( TextBox1.Text(i) =" " ) then TextBox1 = TextBox1.Replace(" ", (20-x)) Next i
Regex
String resultStr = Regex.Replace(sourceStr, " ", "")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)