Hack Forums
[.NET] [Help] Copy textbox1.text to textbox2.text without replacing the actual text. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Help] Copy textbox1.text to textbox2.text without replacing the actual text. (/showthread.php?tid=2419865)



[Help] Copy textbox1.text to textbox2.text without replacing the actual text. - Submariner - Apr 20, 2012

Hey HF Members, Long time I didn't browsed over the VB Section
So now I have few free days, and I though to come back into vb.net coding
I'm trying to code something cool, but I have small problem:

I need to copy text from textbox1.text to textbox2.text
but when I'm doing so its replacing the actual text at textbox2.text

Is there any way to copy the text from textbox1 to textbox2
and then going down 1 line
so each time the text will be on different line, and Will not be replaced?

thanks for all the helpers, in advance!


* - Acidious - Apr 20, 2012

textbox2.text = textbox2.text + vbnewline + textbox1.text

lol i am pretty sure that would work..


* - DeadLine - Apr 20, 2012

Here you go:
Code
TextBox2.Text &= TextBox1.Text & Environment.NewLine



* - Submariner - Apr 20, 2012

(Apr 20, 2012 05:44 AM)Acidious Wrote:  textbox2.text = textbox2.text + vbnewline + textbox1.text

lol i am pretty sure that would work..

Lol thanks a lot, I really need to learn vb.net from the beginning Its been past something like 3 years since i stopped coding :)