Computer Science Canada

Formating Text Boxes...

Author:  haujobb [ Tue Nov 18, 2003 8:43 pm ]
Post subject:  Formating Text Boxes...

How do you format the text in a text box, I want to insert line breaks but can't figure out how! Sad

Author:  Tony [ Tue Nov 18, 2003 11:53 pm ]
Post subject: 

first you have to enable multiline

txtBox.MultiLine = true

you use vbNewLine constant to insert linebreaks. such as in

Text1.Text = "" & vbNewLine & "knows Visual Basic"

Author:  haujobb [ Wed Nov 19, 2003 10:56 pm ]
Post subject: 

Thanx dude.

Nice interface too, havent been around in a while...

Author:  FDisk87 [ Fri Dec 05, 2003 4:49 pm ]
Post subject: 

You could also insert a carriage return, using vbCrLf