|
-
Aug 19th, 2019, 02:23 PM
#1
[RESOLVED] Richtextbox RTF - I learned something
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.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|