LineBreak or BreakLine in TextBox?

HallieHoo

New member
Joined
Sep 12, 2005
Messages
4
Programming Experience
1-3
LineBreak or BreakLine in TextBox? [Resolved]

Hi all,

straight to the point,I have a textbox which initially displaying data at formload, I need the next sentence to be display in the same textbox at a NEW LINE of the textbox (as if we press ENTER to add a new line)

Any idea? i've tried <br>, but seems too stupid to use this break.....

Hallie
 
Last edited:
<br> is html which wouldnt work in c++, c#, vb, etc..

use ControlChars.NewLine:
VB.NET:
Textbox1.Text = "This is Line 1" & ControlChars.Newline & "This is Line 2"

oh and welcome to the forum
 
Back
Top