I'm trying to read the lines of a richtextbox into a string array but no matter how hard i try i keep getting a stackoverflow exception. This is what I currently have (Notes is the name of my Richtextbox):
Before that I tried:Code:Dim newarr() As String = Notes.Lines
And also:Code:Dim newarr() As String = Notes.Text.Split(Environment.NewLine)
Nothing I try is working!! Where am I going wrong???Code:Dim newarr() As String = Notes.Text.Split(vbCrlf)




Reply With Quote