Results 1 to 6 of 6

Thread: Placing chr(13) in a textbox

  1. #1

    Thread Starter
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142

    Cool

    Hi,
    Could some1 help me on placing a chr(13) in a textbox without it coming out as a square?

    Thanx


  2. #2
    Guest
    It shouldn't come out as a square.

    Chr(13) = Enter

    Try changing the font.

    Code:
    Text1.text = "Your text" & Chr(13) & "more text"

  3. #3
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    or if you want, you can use

    Code:
    Text1.text = "Your text" & vbNewLine & "more text"
    NXSupport - Your one-stop source for computer help

  4. #4
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    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]

  5. #5

    Thread Starter
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    yeah,
    vbnewline works, i had just gotten it from a previous thread i was reading, thanx every1, specially dimava
    Osiris

  6. #6
    Guest

    Exclamation 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
  •  



Click Here to Expand Forum to Full Width