Results 1 to 2 of 2

Thread: RichTextBox Edit line by line, keeping the formatting

  1. #1

    Thread Starter
    Addicted Member tgf-47's Avatar
    Join Date
    Feb 2010
    Location
    CapeTown, South Africa -34.01244,18.337415
    Posts
    209

    Unhappy RichTextBox Edit line by line, keeping the formatting

    I want to loop the lines of my RTB and add a vbTab on each line.
    How do i do this?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: RichTextBox Edit line by line, keeping the formatting

    don't change the text property or you'll lose the formatting. set the selectionstart then use .selectedtext = vbtab.
    the rtb has a lines property that is a string array, + you can loop through that...

Tags for this Thread

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