newline character in rich text box?-VBForums
Results 1 to 3 of 3

Thread: newline character in rich text box?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003

    newline character in rich text box?

    This seems like a simple enough question...

    How do you add a "newline character" to a rich text box?

    I am outputting from the code itself using AppendText


    'I want a new line here

    i.e. I want it to appear like:


    But I don't know how to skip down to the next line.
    This would be like printf("\n") in C. (I know C, but I'm new to VB!)

    I am using VB.NET, if it makes a difference.

    Any help appreciated. Thanks a lot!!

  2. #2
    Join Date
    May 2003
    Try \line for a line break, \par for a paragraph break
    Share what you know... Know what you share

    R.G. Brown
    Senior Software Engineer
    Intel Corporation

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    or, vbCRLF...... \line is the raw RTF code....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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

Survey posted by VBForums.