CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Label question

  1. #1
    Join Date
    Apr 2001
    Location
    Midwest
    Posts
    57

    Question 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

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    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
  •  





Click Here to Expand Forum to Full Width

Featured