I\'m trying to convert this code from C# to VB.NET
string[] lines = theText.Split(new string[] { \"\\r\\n\", \"\\n\" }, StringSplitOptions.None);
Escape sequences don't really exist in VB .Net as far as string literals are concerned.
There are 2 special constants which you can use instead:
vbCrLf
vbLf
Dim Excluded() As String
Dim arg() As String = {vbCrLf, vbLf}
Excluded = txtExclude.Text.Split(arg, StringSplitOptions.None)
For i As Integer = 0 To Excluded.GetUpperBound(0)
MessageBox.Show("'" & Excluded(i) & "'")
Next
Should do the trick (untested though).