Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 Windows 窗体应用程序置于屏幕上的所有内容之上?
当您运行全屏游戏时,仅设置 topmost-property 是不够的。
如果有人有旧表格的解决方案,我也会很高兴
我在这个论坛上看到很多帖子说这是不可能的,但我知道这不是因为我见过很多应用程序(fraps、teampeak overlay、xfire 等)可以做到这一点。
如果您想使用图形库来始终在屏幕上显示某些内容,您可能需要从SO开始。有一些可用的包装库,例如用于 OpenGL 的OpenTK 。如果你想走 DirectX 路线,你需要加载 C++ 库并使用 P/Invoke 访问它们。有一个很好的教程可以从msdn开始。DirectX 的包装器也以SharpDX的形式存在。