Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New line in textbox
Message
From
08/07/2005 10:00:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01030410
Message ID:
01030424
Views:
17
Both solutions work perfectly - thank you.

>Hilmar,
>You have to do the same thing as in VFP with chr(13)+chr(10). Try this:
>
>txtResult.Text = "Line1\r\nLine 2"
>
I had tried both \r and \n independently, and got strange symbols in both cases!

>You can also use the following mthod which is suposedly better:
>
>txtResult.Text = "Line1"+System.Environment.NewLine+"Line 2"
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform