Hmmm. That's interesting. I've just been introduced to the VB.NET environment, so i'm basically learning new commands and properties via posts like these.
At the moment i've been using the "vbCr" command a lot. I've tried the Environment.NewLine command you mentioned and the result is the same.
If
TextBox2.Text <> "" Then TextBox1.AppendText(TextBox2.Text & Environment.NewLine)
You mentioned a few posts back that there is a possibility on a system the newline is not CrLf. How can you tell Is there a way of verifying it
If i'm not mistaken, by adding the "vbCr" or "ControlChars.CrLf" commands to you AppendText command, you should be able to start a NewLine (if the TextBox in question has the "MultiLine" property set to True).
NewLine in a TextBox
Gilles L.
Ive been using "ControlChar.CrLf"
Stephen020960
Hmmm. That's interesting. I've just been introduced to the VB.NET environment, so i'm basically learning new commands and properties via posts like these.
At the moment i've been using the "vbCr" command a lot. I've tried the Environment.NewLine command you mentioned and the result is the same.
If
TextBox2.Text <> "" Then TextBox1.AppendText(TextBox2.Text & Environment.NewLine)You mentioned a few posts back that there is a possibility on a system the newline is not CrLf. How can you tell Is there a way of verifying it
titanico
You made a mistake in the command.
You should use Environment.NewLine instead of Enviroment.NewLine (missing the 'n').
Grtz, Tom.
Tami19813
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemEnvironmentClassNewLineTopic.asp
According to MSDN, it should work.
What's the error
Pavan C
I tried that but i gave me an error
Selven
HoundsOfHell asked the same question just now within the following post (^_^ ):
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=360129&SiteID=1
If i'm not mistaken, by adding the "vbCr" or "ControlChars.CrLf" commands to you AppendText command, you should be able to start a NewLine (if the TextBox in question has the "MultiLine" property set to True).
Maybe you could try that.
Chatanya
i used from his example
TextBox1.AppendText(TextBox2.Text & ControlChars.CrLf)
manit
Textbox1.appendtext("blah" & vbCR)
or
Textbox1.appendtext("blah" & ControlChars.CrLf)
something like that
Eric Rook
You should actually use Environment.NewLine, just in case your code gets run on a system one day where the newline is not CrLf.