How would I move onto the next line in a textbox by pressing a button on a form? I am using a multiline textbox with a v.scroll bar
Printable View
How would I move onto the next line in a textbox by pressing a button on a form? I am using a multiline textbox with a v.scroll bar
Using either vbCrLf or vbNewLine.
How would i implement that into my program?
- set MultiLine = True for your textbox but do it in design
- use the following logic:
Text1.Text = Text1.Text & vbNewLine & "Some New Text Goes Here"
every time you need to add new line to existing text.
Thanks again.