HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Text box problem. Pls help.

09-07-2004, 03:01 PM#1
Sneaky-Sebbe
I am trying to learn writing some vb and i wonder if anyone can help me with this problem.

I want to add text to textbox a line down and keep the old text on the first line like this.

Text1: Hello!
Text2: Hello again!
Text3: Bye

and so on.

How do i do that?
09-07-2004, 03:50 PM#2
Oinkerwinkle
Make sure you have the Multiline property of the text box set to true and then, as your code, you would have txtField.Text = txtField.Text & vbCrLf & "Here is another line."
09-08-2004, 10:16 AM#3
Sneaky-Sebbe
Thx, it worked fine.

I should have given you some reputation but its something wrong with my webreader and it cant open the reputation window.