Hi,
Could some1 help me on placing a chr(13) in a textbox without it coming out as a square?
Thanx
Printable View
Hi,
Could some1 help me on placing a chr(13) in a textbox without it coming out as a square?
Thanx
It shouldn't come out as a square.
Chr(13) = Enter
Try changing the font.
Code:Text1.text = "Your text" & Chr(13) & "more text"
or if you want, you can use
Code:Text1.text = "Your text" & vbNewLine & "more text"
Set the Multiline Property to True and add a Chr(10) after it:
[code]
Text1.Text = "Hello" & Chr(13) & Chr(10) & "Me"
yeah,
vbnewline works, i had just gotten it from a previous thread i was reading, thanx every1, specially dimava
Osiris
Argh...I forgot, textboxes can't just have Chr(13). You'd have to combine Chr(13) & Chr(10) together. Or you can use vbNewLine or VbCrLf to do it.
Sorry about that :rolleyes:.