Click to See Complete Forum and Search --> : Label question


sternaphile
July 11th, 2002, 09:09 AM
Thanks for reading this.

I'm fairly new to .NET and old VC habits die hard. I'd like to add embedded tabs '\t' and newline '\n' into the "Label" for formatting purposes. When I do this through .NET, I get the square that signifies an unrecognized character. Any ideas?

jparsons
July 11th, 2002, 12:06 PM
Originally posted by sternaphile
Thanks for reading this.

I'm fairly new to .NET and old VC habits die hard. I'd like to add embedded tabs '\t' and newline '\n' into the "Label" for formatting purposes. When I do this through .NET, I get the square that signifies an unrecognized character. Any ideas?

The reason it has problems with '\n' is that Windows actually used \r\n ( or \n\r can't remember ) to signify the end of the line. To make this work properly use System.Environment.Newline when you need to use a \n