Results 1 to 4 of 4

Thread: .net compact textbox newline

  1. #1
    Join Date
    Mar 2009
    Posts
    55

    .net compact textbox newline

    I set the text property to string in TextBox on the form with multiline property set true which contains '\n' characters. it just provides a small square box where the newline should work but it does not start a new line. Somebody Help....!

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: .net compact textbox newline

    Environment.NewLine try function. It is a constant for the " \ r \ n" , that works on the current platform, but there is no guarantee that the new standard for the platform will be used for text professions.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: .net compact textbox newline

    It is not by area information problem. its resource management program, the '\n' a '\\n '. translate. It does not recognize the symbol. When you add new line in the Utilities Act want to add, then hit the Shift + Enter. Resource management program recognizes it as '\r\n'.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: .net compact textbox newline

    Do one thing try lines property rather than textbox/text property :

    Code:
    textBox.Lines.Add("Line1");
    textBox.Lines.Add("Line2");

Similar Threads

  1. Replies: 2
    Last Post: 20-08-2010, 01:23 AM
  2. ProgressBar In TextBox
    By Level8 in forum Software Development
    Replies: 5
    Last Post: 06-02-2010, 08:55 PM
  3. Add scanf without newline
    By Zool in forum Software Development
    Replies: 3
    Last Post: 08-10-2009, 02:34 PM
  4. How to create javascript dump newline
    By Broot in forum Software Development
    Replies: 3
    Last Post: 30-07-2009, 12:01 PM
  5. .net Compact Framework autosize textbox
    By Avanindra in forum Software Development
    Replies: 2
    Last Post: 04-06-2009, 07:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,949,934.85014 seconds with 17 queries