# Multiple lines of text in Visual Basic

**URL:** <https://forum.kirupa.com/t/multiple-lines-of-text-in-visual-basic/10103>\
**Category:** programming\
**Created:** [December 24, 2002, 1:59pm UTC](https://forum.kirupa.com/t/multiple-lines-of-text-in-visual-basic/10103 "2002-12-24T13:59:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martystudio](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@martystudio](https://forum.kirupa.com/u/martystudio)\
**Post date:** [December 24, 2002, 1:59pm UTC](https://forum.kirupa.com/t/multiple-lines-of-text-in-visual-basic/10103/1 "2002-12-24T13:59:19Z")

</div>

I have this problem, i have to input this

Hello

How are you

Hey

in a multine text box in VB 6.0 USING Code an example is

mainbox.Text = “hello”

only i have to put different things on different lines, how can i do this?☹ :_( ☹ :-\ ☹ :_( the following dont work, i v tired

* * *

mainbox.Text = “Hello  
Howareyou  
Hey”

mainbox.Text = “Hello”  
mainbox.Text += “How are you”  
mainbox.Text += “Hey”

so, dont post those cause they dont work
