Results 1 to 2 of 2

Thread: "enter-keystroke" in string in textbox

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Sweden
    Posts
    40

    "enter-keystroke" in string in textbox

    How do I put in a "new row" command in a string that I want
    to display in a textbox? In the example below the textbox displays
    the | char instead of actually moving to the next row.

    <vbcode>
    mystring = "Row1" & vbkeyreturn & "Row2" ' this doesn't work...
    </vbcode>

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: "enter-keystroke" in string in textbox

    Originally posted by digisenze
    How do I put in a "new row" command in a string that I want
    to display in a textbox? In the example below the textbox displays
    the | char instead of actually moving to the next row.

    <vbcode>
    mystring = "Row1" & vbkeyreturn & "Row2" ' this doesn't work...
    </vbcode>
    VB Code:
    1. mystring = "row 1" & vbcrlf & "row2"

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