Hi
How I put in the textbox, few lines with vbCR&vbLf ?
Printable View
Hi
How I put in the textbox, few lines with vbCR&vbLf ?
Assume you want a few empty lines at the begining of the text box.
That will place one empty line at the begining of the text box.Code:Text1.Text = Text1.Text & VbCrLf
Gl,
D!m
That actually places a new line at the END of the Textbox. At the beginning would be:
[code]
Text1=vbNewLine & Text1.Text
Or you can place it where ever the cursor position is.
Code:Text1.SelText = vbCrLf