Re: MultiLine Textboxes??
One, newlines on Windows are not \n, they are \r\n. Two, I'm not sure what you mean by "I can't get it to use newlines". Can you be more specific?
Re: MultiLine Textboxes??
My code for the box looks like this
Output.Text += "Starting New Run!!! \n";
How ever. It ignores the newline. It should print
Starting new run!
Starting new run!
Starting new run!
instead it prints
Starting new run!Starting new run!Starting new run!
Re: MultiLine Textboxes??
NEVERMIND! You solved it thanks!
Re: MultiLine Textboxes??
While \r\n will work, the preferred way would be using Enviroment.NewLine which makes sure it will be handled correctly in the future :)
Re: MultiLine Textboxes??
Quote:
Originally Posted by
ixilom
While \r\n will work, the preferred way would be using Enviroment.NewLine which makes sure it will be handled correctly in the future :)
Yes, absolutely correct. And it will also come in handy should you ever port your code to Mono.