WinForm lock other application inside form

本秂侑毒 提交于 2019-12-02 11:50:21

It is explicitly forbidden by the SDK docs, but some appcompat hacks for Windows 3.x apps can make it possible. Ab/used by several 32-bit programs as well, Acrobat Reader for one.

P/Invoke SetParent(), you'll need the window handle of the app's main window. Process.MainWindowHandle() with some luck. MoveWindow to put it in the right place. Use pinvoke.net for the declarations you'll need. The fact that this app displays video doesn't improve the odds that this will work out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!