通过BackgroundWorker访问RadRichTextBox控件. [英] Access RadRichTextBox control through BackgroundWorker.
本文介绍了通过BackgroundWorker访问RadRichTextBox控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将RadBusyIndicator用于我的WPF应用程序的情况下,我会遇到异常.
为了使BusyIndicator工作,我正在使用BackgroundWorker.它尝试访问RadRichTextBox控件并引发一个异常,
调用线程无法访问此控件,因为它由另一个线程拥有."
I am getting exception in case of putting RadBusyIndicator for my WPF application.
To have the BusyIndicator work, i am using BackgroundWorker. It tries to access the RadRichTextBox control & throws an exception which is,
"The calling thread cannot access this control because it is owned by another thread."
推荐答案
阅读有关主题的以下内容:
http://stackoverflow.com/questions/7153814/c-sharp-winform-backgroundworker-problem [^ ]
Read the following on the topic :
http://stackoverflow.com/questions/7153814/c-sharp-winform-backgroundworker-problem[^]
这篇关于通过BackgroundWorker访问RadRichTextBox控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文