WPF中的ActiveX控件 [英] ActiveX controls in WPF

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

问题描述


我无法激活我的项目所需的WPF中的活动x控件(.ocx).我已成功安装到注册表中,并且可以在Windows窗体应用程序中正常运行.

我已经尝试通过结合WPf和Windows窗体来尝试,但是我无法在我的应用程序的必需区域中显示该控件.它显示在另一个窗口中...
有什么办法可以在WPF中显示Windows窗体??



在以上任何一种情况下,Plzzz都可以帮助我........



预先Thnx

Hi,
I am unable to activate active x controls(.ocx) in WPF which are required for my project.I have installed successfully installed into registries which are working fine in Windows forms application.

I have tried by combining WPf and Windows form, but i''m unable to show that control in the required area of my application.. it is displaying in another window...
is there any way to display the windows form in the WPF???



Plzzz help me out in any of the above cases........



Thnx in advance

推荐答案

您需要使用Winforms集成才能使该工作正常.这是一个可能有用的链接.

http://blogs.msdn.com/b/mhendersblog/archive/2005/09/23/473065.aspx [ ^ ]

如果那还不够用,请用谷歌搜索这个短语:

"wpf中的activex控件"
You need to use Winforms integration to make that work. Here''s a link that might help.

http://blogs.msdn.com/b/mhendersblog/archive/2005/09/23/473065.aspx[^]

If that doesn''t help enough, google this phrase:

"activex control in wpf"




感谢您的帮助....但是它对我没有用...我只是想在wpf中添加一个自定义的活动x控件,以便可以在Winforms中正确呈现它.
我通过谷歌搜索获得的解决方案是我可以通过Windows窗体宿主在wpf中托管活动的x控件..但这也不起作用...我的意思是控件没有被激活以拖动到WPF中的Windows窗体宿主中

你能告诉我我应该怎么做吗...



预先感谢,


Thanks for the help.... but it didn''t work for me.... i just wanted to add an custom active x control in wpf which i can render it properly in Winforms..

The solution i got by googling out is that i can host active x controls in wpf through windows form host.. but it is also not workin...i mean the control is not getting activated to drag into my windows form host in WPF

can you tell me how should i proceed further...



Thanks in advance,


这篇关于WPF中的ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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