Go to newline in a label control.

foxerboy76

New member
Joined
Apr 14, 2005
Messages
1
Programming Experience
3-5
Dear All,
I want to go to a newline in a label control.
i want to put my outputs in the label but separate results by going to next line.
for example:
one,
two,
three,
four

each result prints in a newline in my label control.
thanks:)


 

mothra

Member
Joined
Mar 26, 2005
Messages
7
Programming Experience
3-5
Or, even better (well, different anyhow...)

Environment.NewLine

and, with the shortcut

Dim nl As String = Environment.NewLine
(notice that, in this example, the new line is of Type String and not Char, for what its worth)
 
Last edited:

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
Dim nl as Char = ControlChars.NewLine
and
Dim nl as String = Environment.NewLine
both work the same, Char uses less memory to do the same thing
 
Top Bottom