simple stuff

mikem

Member
Joined
Aug 29, 2005
Messages
10
Programming Experience
1-3
How to force a new line to display on screen

How can I force a new line to display on screen, I've tried
controlcharacter. nl vbcr vbcrlf etc
mikem
 
Last edited by a moderator:
you mean a new line in a textbox or label?

for that use ControlChars.NewLine

as in:
Textbox1.Text = "This is Line 1" & ControlChars.NewLine & "Here's Line 2"
 
i'll assum you're using a textbox (or richtextbox)

click on the textbox and in the designer go to the properties window make sure multiline is set to true then drop down the scrollbars option and select vertical this will cause the words to go to the next line if the line is too long to fit visibly in the textbox without using the horizontal scrollbar
 
Back
Top