Form; always on top.
-
How can I make sure my form stay on top of everything. I set the TopMostLevel to true, and it works when I work in windows. Then, I load a game and my form is hidden. Does the game take over the priority or what, and how do I change that? Thanks
Games write directly to the screen buffer, not through GDI or GDI+ like Windows does. A system modal dialog would only appear atop a windowed-game, and good luck trying to find any decent ones these days.
Microsoft MVP, Visual C# My Articles
-
Games write directly to the screen buffer, not through GDI or GDI+ like Windows does. A system modal dialog would only appear atop a windowed-game, and good luck trying to find any decent ones these days.
Microsoft MVP, Visual C# My Articles
-
For me to write screen buffer, would I have to use DirectX or something of that sorts? Thanks in advance.
You can, or you can P/Invoke the massive amount of APIs required to communicate with the display HAL, which doing in managed code (except, perhaps, Managed C++) would truly be a nightmare. And just implementing DirectX won't necessary fix the problem: the game may not share its hold on the display device (or any other devices it's using). An exclusive lock may be used. Games like the older Everquest versions (according to my friend) did have such an exclusive lock and if you tried to circumvent the lock the game would crash and eventually your account would be locked out.
Microsoft MVP, Visual C# My Articles