Results 1 to 3 of 3

Thread: textbox manipulation

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    textbox manipulation

    ok, here's the deal... part of my app takes user input and turns it into html code... it then takes that, piece by piece, and puts it into an another large textbox where the user can take that code and dump it into another editor...

    question is, how do I get code that is put into the "code" box to show up with white space and have certain lines show up on the next line...

    right now i'm just using:

    VB Code:
    1. frmMain.txtCode = strHead + strFinal + strX, etc, etc..

    and this just puts the text back to back to back... how do I make certain pieces appear on the "next line" in the textbox?

    OH, and I did try inserting "vbCR" at certain points, but all that does is put the little "return symbol" in and then continues with the next string... ???

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Did you try vbNewLine?

    A RichTextBox supports the vbCrLf function.

  3. #3

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    ah HA! vbNewLine works perfectly... thanks Hack..

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