Hi,
I am using webbrowser control in C# as HtmlEditor. And calling that webbrowser in Wpf window form host. My html pages are shown in webbrowser control. I have one button to add html and on click of that I am initializing that webBrowser(HtmlEditor) again. While I am trying to do so sometimes this exception comes:
"TargetInvocation exception" and "Unable to get window handle for WebBrowser Control. Windowless ActiveX control not Supported"
Please Help how to resolve it.
Exception- Unable to get window handle for WebBrowser Control
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #108 · 20.5K reputationPosted Apr 20, 2011, 5:34 PM EDT