Always on top, even in fullscreen-games

社会主义新天地 提交于 2021-01-01 04:27:24

问题


How do you put a Windows Form Application on top off everything on your screen?

Just setting the topmost-property isn't enough when you're running fullscreen games.

If anyone has a solution for good old Forms i'll also be happy

I've seen many posts on this forum that say it's impossible but i know it's not couse i've seen alot of apps (fraps, teamspeak overlay, xfire, etc) that does this.


回答1:


If you want to use a graphics library to display something always on screen, you may want to start here on SO. There are wrapper libraries available like OpenTK for OpenGL. If you want to go the DirectX route you'll need to load in the C++ libraries and access them using P/Invoke. There's a good tutorial to start with on msdn. Wrappers for DirectX also exist in the form of SharpDX.



来源:https://stackoverflow.com/questions/22026990/always-on-top-even-in-fullscreen-games

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