Working on an application that reads RTF. In the past when working with Richtextboxes we have found that applications are faster using a RTB that mirrors a RTB on the UI. The mirror RTB is created and disposed on a thread.

What learned is that if I do this

bkgRTB.Rtf = rtbOnTheUI.Rtf

where:
  • bkgRTB.Rtf - mirror RTB
  • rtbOnTheUI.Rtf - RTB on the UI


The background RTB thinks / is on the UI. It is manifested by CrossThread errors.

The fix was to load the RTF into a string and then load each of the RTB's .Rtf property from that.