|
-
July 11th, 2002, 09:09 AM
#1
Label question
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?
"Judge a man by his questions rather than his answers." - Voltaire
-
July 11th, 2002, 12:06 PM
#2
Re: Label question
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
Jared
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|