开发者

Embeding or reparenting a Windows Application inside Internet Explorer

Is it possible to host/embed/reparent a normal Windows Application into a web page loaded into Internet Explorer on our Intranet?

I'd like to do something like have the user press a button on our intranet site, and have the Windows application start and开发者_运维问答 look like it's inside our application, as if it was "framed". I believe it's possible to do this with Windows applications that reparent other applications.

I'm happy to elevate permissions, use trusted sites, make it a HTA, and/or change the registry on the client machine if necessary as we have full control over the machines on our Intranet. This also only needs to work on Internet Explorer.


To use ActiveX you need to modify the application to render to a different window handle. What language is your target application written in?

You need to change your application that it can be called with some parameters or as a dll with a window handle (one from internet explorer) as parameter. Your application instead of creating it's own window need to use the window handle from ie to render. Then you need to implement a simple ActiveX object that does nothing than to instanciate your application with the proper arguments.


Sounds like you want to write an ActiveX control.


I've heard of embedding winforms into wpf, though I've never done it, this code project article claims to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜