通过BackgroundWorker访问RadRichTextBox控件. [英] Access RadRichTextBox control through BackgroundWorker.

查看:98
本文介绍了通过BackgroundWorker访问RadRichTextBox控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将RadBusyIndi​​cator用于我的WPF应用程序的情况下,我会遇到异常.
为了使BusyIndi​​cator工作,我正在使用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-b​​ackgroundworker-problem [^ ]
Read the following on the topic :
http://stackoverflow.com/questions/7153814/c-sharp-winform-backgroundworker-problem[^]


这篇关于通过BackgroundWorker访问RadRichTextBox控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆