Re: validation
You seem to be assigning Environment.Newline to the rich text box control right after you assign the line to it:
Code:
richTextEditor.text = line;
richTextEditor.text = System.Environment.NewLine;
Not sure if this is intentional, probably not. What you're probably looking for is:
Code:
richTextEditor.text = line;
richTextEditor.text += System.Environment.NewLine;
or just
Code:
richTextEditor.text = (line + System.Environment.NewLine);
R.I.P. 3.5" Floppy Drives
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
Bookmarks