I have a textbox that I wanted to use to list errors. However I can't dynamically add newline characters to make each error appear on a new line.
Here's the code I'm using to add the errors to the textbox
And here's what it looks like:Code:public string[] Errors { get { return errors; } set { errors = value; errorLabel.Text = ""; foreach ( string error in value ) { if ( errorLabel.Text.Length > 0 ) errorLabel.Text += "\n"; errorLabel.Text += string.Format( "● {0}", error ); } errorLabel.Invalidate(); } }
![]()
AcceptReturn is set to 'true', but that only seems to affect User input rather than being able to programatically add newlines. Seems kinda odd.
Anyone have any ideas?




Reply With Quote