So I am giving my program a UI (windows forms), and part of the UI outputs the contents of a .txt file for the user to read.
foreach (Error errorFind in errorList)
{
rtbFile.AppendText("Record #: " + errorFind.Number.ToString());
rtbFile.AppendText("Date: "+ errorFind.Date);
rtbFile.AppendText("Time: " + errorFind.Time);
rtbFile.AppendText("Priority: " + errorFind.Priority.ToString());
rtbFile.AppendText("Description: " + errorFind.Description);
}
The output works great, but since this is my first time outputting text to anything other than the Console, i assume that it hits enter each time. It doesn't :cursing:
As you can guess, it just outputs it in one line, only wrapping because it reaches the edge of my box. How can i get the program to create a new line (IE: hit enter). MSDN doesnt seem to be helping me with this...
Thanks! :)


Sign In
Create Account

Back to top









