.NET Compact Framework

Hello everybody.

My question is as follows: In my Pocket PC 2003 Application I am using a string in the form of:

String mystring = "some text here" + "\r\n" + "some other text here";

Instead of getting the second part of mystring in a new line, I get a box next to the first part. Is there any way to solve that

Thank you in advance,

Korina



Answer this question

.NET Compact Framework

  • LalitSRana

    Set your textbox to Multiline.  If you still get problems then rather than set textBox.Text, set textBox.Lines = mystring.Split(new char[] {'\n'} );

     


  • .NET Compact Framework