Welcome to weblogs.com.pk Sign in | Join | Help

Adnan Siddiqi

Lets get technical

News



  • View Adnan Siddiqi's profile on LinkedIn
new line in textbox

I coudn`t find some C# way to resolve this problem \n\r were not working for me,once again,past VB experience helped me to solve this,i added VB.NET runtime in my project and use VBcrlf constant to print in newline

this.txtDetails.Text="Adnan"+Microsoft.VisualBasic.Constants.vbCrLf+"Siddiqi";

does anyone know some better solution(without adding VB runtime in C# project?

Posted: Friday, March 25, 2005 12:30 PM by kadnan
Filed under:

Comments

khurram said:

Try System.Environment.NewLine
# March 25, 2005 9:42 PM

said:

Or embed \r\n: "Siddiqui\r\n";

\r == carriage return
\n == newline
# April 25, 2005 11:51 AM
Anonymous comments are disabled