Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New line in textbox
Message
De
08/07/2005 10:00:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01030410
Message ID:
01030424
Vues:
16
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform