
-----------------------------------
haujobb
Tue Nov 18, 2003 8:43 pm

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! :(

-----------------------------------
Tony
Tue Nov 18, 2003 11:53 pm


-----------------------------------
first you have to enable multiline

txtBox.MultiLine = true


you use vbNewLine constant to insert linebreaks. such as in

Text1.Text = "compsci.ca" & vbNewLine & "knows Visual Basic"


-----------------------------------
haujobb
Wed Nov 19, 2003 10:56 pm


-----------------------------------
Thanx dude.

Nice interface too, havent been around in a while...

-----------------------------------
FDisk87
Fri Dec 05, 2003 4:49 pm


-----------------------------------
You could also insert a carriage return, using vbCrLf
