0

I want to show text on screen while playing a fullscreen game... This is my current code, the text is displayed on the form:

public Form1()
{
    //info about the form location and make it invisible
    InitializeComponent();
    FormBorderStyle = FormBorderStyle.None;
    BackColor = Color.Lime;
    TransparencyKey = Color.Lime;
    StartPosition = FormStartPosition.Manual;
    TopMost = true;
}

The text isn't shown when running fullscreen applications.

What can I do so it will show me the text?

Visual Vincent
  • 18,045
  • 5
  • 28
  • 75
  • I don't see a label anywhere in your code. How do you show your text? – Alex Jun 13 '16 at 09:32
  • Another guy had the same question, Dll Injection would be required: https://social.msdn.microsoft.com/Forums/vstudio/en-US/9a1ba0ae-6108-40d2-b213-19bf59f5eec8/make-for-absolute-on-top-problem-when-running-games-in-fullscreen?forum=csharpgeneral --- _(**Note** that Steam VAC reacts to Dll Injection, so you shouldn't do it if you're playing any online Steam games)_. – Visual Vincent Jun 13 '16 at 09:34
  • Have you tried this? http://stackoverflow.com/questions/1528473/c-sharp-make-a-window-topmost-using-a-window-handle – Aleksandar Toplek Jun 13 '16 at 09:45
  • Is there any other way? instead of the DLL injection? – oren ben yamin Jun 13 '16 at 13:39
  • I don't think so. Fullscreen applications (such as games) doesn't use the regular methods to create and render their "window" and it's contents. The reason you would have to use the (unsafe for cheat protected games) Dll Injection is because you must either host the form inside the game, or tell the game to render it on top. And neither cannot be done using external functions. – Visual Vincent Jun 14 '16 at 09:25

0 Answers0