|
-
Oct 9th, 2000, 06:08 PM
#1
Thread Starter
Addicted Member
Hi,
Could some1 help me on placing a chr(13) in a textbox without it coming out as a square?
Thanx
-
Oct 9th, 2000, 06:20 PM
#2
It shouldn't come out as a square.
Chr(13) = Enter
Try changing the font.
Code:
Text1.text = "Your text" & Chr(13) & "more text"
-
Oct 9th, 2000, 06:25 PM
#3
Frenzied Member
or if you want, you can use
Code:
Text1.text = "Your text" & vbNewLine & "more text"
NXSupport - Your one-stop source for computer help
-
Oct 9th, 2000, 06:26 PM
#4
Fanatic Member
Set the Multiline Property to True and add a Chr(10) after it:
[code]
Text1.Text = "Hello" & Chr(13) & Chr(10) & "Me"
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Oct 9th, 2000, 06:37 PM
#5
Thread Starter
Addicted Member
yeah,
vbnewline works, i had just gotten it from a previous thread i was reading, thanx every1, specially dimava
Osiris
-
Oct 9th, 2000, 06:57 PM
#6
Where is my mind today?
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 .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|