Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone tell me how to take a new line inside a textbox

Status
Not open for further replies.

thetambarineman

Technical User
Feb 29, 2000
63
GB
I'm trying to create a text box which will print out a variety of information. Unfortunately when the information varies in size i lose the formatting. Can anyone suggest a way around this??<br>
<br>
Thanks in advance.<br>
<br>
Paul.
 
If you are entering information into the multiline textbox, and you want to force logical breaks between lines, you can do it like this:<br>
<br>
Text1.Text = &quot;This is line one&quot; & Chr(10) & &quot;This is line 2&quot;<br>

 
sometime this Chr(10) just puts a &quot;¦&quot; symbol in between the lines.<br>
I've had better luck with this. vbCrLf <br>
Text1.Text = &quot;This is line one&quot; & vbCrLf & &quot;This is line 2&quot;<br>
<br>
<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top