Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1039667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:07:43+00:00 2026-05-16T15:07:43+00:00

I have a program where I basically need to load Rich Text from a

  • 0

I have a program where I basically need to load Rich Text from a StringBuilder.
The problem is, somethimes I get a string that is 100,000 lines long (and this is a possible situation for the program), including Rtf codes and colours.

The problem isn’t building the string, it’s when I asign the Rtf property to the StringBuilder.ToString(), it takes a solid 4 minutes to load.

TextBox.Rtf = Build.ToString();

If I copy this same string from the StringBuilder, and load it in WordPad, it takes about 2 or 3 seconds. I am diabling the RTB’s redrawing by using SendMessage() and WM_SETREDRAW, but that doesn’t change anything.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:07:43+00:00Added an answer on May 16, 2026 at 3:07 pm

    RichTextBox uses riched20.dll which is the v3.0 of the library Rich Edit Control of Microsoft. However, WordPad uses msfedit.dll which is version 4.1.

    Version 4.1 is about 30 times more faster than v3.0

    See this for more information about versions
    MSDN About Rich Edit Controls

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 511k
  • Answers 511k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Twisted is usually preferred to asyncore. It is an asynchronous… May 16, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer To sort the Array, try this: Gallery.sort(function(a,b) { return a.Order… May 16, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer See array_count_values. <?php print_r(array_count_values( array(134, 12, 54, 134, 22, 22,… May 16, 2026 at 5:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a program that accepts a Cmd command as a command argument. Basically
Two Delphi programs need to load foo.dll, which contains some code that injects a
I have a Pig program where I am trying to compute the minimum center
We have our own glue-layer-code-thingamajig that allows us to host the .NET runtime in
Basically I have a main form which upon loading, opens a child form for
I have a vector array of triangles which basically consist of a bunch of
i'm trying to create a program that generates images for use as multi-screen backgrounds,
I have a lot of classes which are basically equivalent, ie have almost the
I guess I don't need the web browser, since network capabilities are built into
I'm currently in the early stages of designing a system that will end up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.