Why isn't this charcode working?

Jimmythegreat

Member
Joined
Jul 19, 2006
Messages
17
Programming Experience
3-5
Hi, i'm kinda new...well, not new but I forgot everything about VB.net that I learned in the past. But onto the problem.

I'm using ChrW(11) to simulate the return key being pressed.
Ex.
VB.NET:
main.Text = (Text1.Text + ChrW(11))
and I get (Text1.text)
charcode11bp2.png


I searched for chrw(11) on google and it is that symbol, but I saw on this forum that ChrW(11) was a return.

Anyone know a fix or a way? I need it to be:
VB.NET:
"(Text1.text)
"

Thanks
 
use Environment.NewLine

ChrW(11) is a return (a carriage return), but to get a newline you need a return plus a line feed. This is carried over from the mechanical type days. The return sends the carriage back to the left and a line feed also does as its name implies, feeds the paper up one line. By the way, a line feed is Chr(13) so to get a newline you need Chr(11) + Chr(13).
 
Back
Top