Reputation: 2149
I am developing WPF windows application using VS 2008 and .NET 3.5. I am trying to use Mozilla Web browser activeX control in my application. I have added it to my tool box. The control is visible in tool box but it is disabled state. I am not able to use it during design time. This does not happen with normal Windows Form Application, I am able to use same control during design time.
Can anybody help me to understand this strange behavior?
Thanks, Omkar
Upvotes: 2
Views: 820
Reputation: 941545
WPF doesn't directly support ActiveX controls. You'll need Winforms to give it a hospitable runtime environment and leverage the auto-generated AxHost wrapper. The WindowsFormHost control is available to embed winforms controls in a WPF window. The walkthrough that shows the technique is available here.
Upvotes: 2