This is a migrated thread and some comments may be shown as answers.

Find Replace dialog doesn't accept Input if radrichtextbox is hosted in a WinForm using ElementHost

2 Answers 39 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kushagra
Top achievements
Rank 1
Kushagra asked on 03 Mar 2014, 06:43 AM
Hello,

I am using radrichtextbox as a hosted control inside my Winform application and I have used ElementHost for this purpose and made the control as its child. Mostly everything works well with this approach. The only thing which caught my notice is that on firing ShowFindReplaceDialogCommand. The dialog doesn't accept user input as it is non modal. Now, I am aware that for making a WPF non modal window accept input when used inside an element host it needs to call EnableModelessKeyboardInterop(Window window); method. But How do I call this method in this case.

Warm Regards,
Kushagra Tiwari

2 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 05 Mar 2014, 05:13 PM

Hello Kushagra,



Thank you for your interest in RadRichTextBox.



There is no easy way to access the FindReplaceDialog. However, you can easily create custom dialog and call the EnableModelessKeyboardInterop before showing it (inside the Show method). Here you can find a SDK sample of how to create custom FindReplaceDialog.



Hope this answers your question.



Regards,

Kammen
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Kushagra
Top achievements
Rank 1
answered on 06 Mar 2014, 10:09 AM
Thanks for the reply. It solves my issue. I have made a custom control for FindReplace dialog

Kushagra
Tags
RichTextBox
Asked by
Kushagra
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Kushagra
Top achievements
Rank 1
Share this question
or