I'm writing a program and I want it to be displayed even on top of a game running in full-screen mode (like counter-strike).
I'm using Visual Basic as programming language. Every single help is appreciated.
I'm writing a program and I want it to be displayed even on top of a game running in full-screen mode (like counter-strike).
I'm using Visual Basic as programming language. Every single help is appreciated.
Display window over full screen application
But this is not the best option. In full screen mode there is exclusive access to the display, and you can only display on top of this if you are allowed to implement it if it's a game in OpenGL, DirectX and BackBuffer to impose your data.
It's not so complicated. You just have to read this question's answer.
The simplest way of making a window top-most is to specify the
WS_EX_TOPMOST
flag when you create the window. The .NET Framework hides most of the window creation work behind the scenes, but you can customize the parameters when you need to by overriding theCreateParams property
of your form class.
Here's the code :
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Const WS_EX_TOPMOST As Integer = &H00000008
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or WS_EX_TOPMOST
Return cp
End Get
End Property
But anyway, because this won't work. It's not a good solution as I said to jhegeman2.