Results 1 to 3 of 3

Thread: Rtb

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Rtb

    having some trouble
    I have 1 main RTB
    I have another small RTB
    I have several other plain textboxes

    I want everything to be appended into the 1 main RTB. Trouble is, I want to keep the formatting when copying from the 1 small RTB into the main RTB but its not working.

    I've tried to append text to the main RTB for each control then when I Get to the mini RTB control, I append it to the main RTB, select that text, change the font to underlined, then continue on but makes everything underlined....

    any ideas how to accomplish this task?

    so I only want a specific portion of the main RTB the same formatting as the mini RTB

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: Rtb

    actually I think I got it....

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Rtb

    If you haven't done this already you would place the insertion point at the end of the text, or wherever you wanted the new text inserted, then do something like this:
    VB Code:
    1. bigRtb.SelectedRtf = littleRtb.Rtf;
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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