PDA

Click to See Complete Forum and Search --> : Linebreaks in Textboxes


tizzy
Jan 13th, 2000, 03:04 AM
This must be the easiest question ever, but how do you insert a line break in a bog standard Textbox? I want to do it programmatically cause the textbox will be hidden from the user. For example, I want a small, one line textbox that the user can put text in, then a button that when clicked, puts the text in the small box in the big box, but underneath the last line of text. I honestly cannot remember how you do it!!! HELP!!!!!

ChrisJackson
Jan 13th, 2000, 03:19 AM
Greetings Tizzy,

Put this code in the click event of the button:
Text2 = Text2 & vbCrLf & Text1
Be sure that the MultiLine Property of TextBox2 is set to TRUE.

All the best.

Chris

tizzy
Jan 13th, 2000, 03:24 AM
I knew it was soooo easy. Anyway, cheers for the answer, I can get on with it now!