Chr(10)

sethindeed

Centurion
Joined
Dec 31, 1969
Messages
118
Location
Montreal Canada
This is the expression I used in VB6 to emulate carriage return when setting the text property of a Textbox at runtime.
In .net, it does not seems to be understood by the textbox control.
I set to AllowReturn property to True, but the textbox won't still show the carriage return.
Is there a new syntax or something ?

thx
 
You should use Environment.NewLine when you need to instead a newline in to a textbox or anything else. This keeps it platform independant.
 
Back
Top