I want to call RichTextBox.Find()
from another thread. How can I do that?
The RichTextBox
is located in a UserControl
which I\'m using in
You need to decouple your code a bit from UI controls and do your business logic on external thread and update UI control on Dispatcher.BeginInvoke or Invoke.
For example ,you can save the text that your Textbox has in a separate property and do Find on other thread ,once you are done post the UI highlight part on UI thread.