You can use Regex.Replace, although I still am not quite sure what you meant by your post just above. Also, Environment.Newline should be used instead of vbcrlf...
VB Code:
Dim MyLines As String = "this " & Environment.NewLine & Environment.NewLine & _ "and that" & Environment.NewLine & " and another!" MessageBox.Show(System.Text.RegularExpressions.Regex.Replace(MyLines, Environment.NewLine, ""))




Reply With Quote