Re: TopMost In Visual Basic.
Hello Clod14,
Are you sure you have posted in the correct forum?
This is the ASP.Net Forum, and to me, it looks like you are creating a Windows Form application. Is that correct?
Gary
Re: TopMost In Visual Basic.
Here ya go :thumb:
That's it. Nothing fancy.
Re: TopMost In Visual Basic.
Quote:
Originally Posted by
Radjesh Klauke
Here ya go :thumb:
That's it. Nothing fancy.
While that works a treat on windowed programs, any full screen will simply render right over the top and you won't see so much as a flicker. There's no "simple" way to place your form over a DirectX game unless you hook the directX itself and draw to the program. How to do that, I have no idea. Perhaps someone else will post a better solution than that and actually help you draw it with DX.
Re: TopMost In Visual Basic.
Another point: Only the last window who asked to be topmost gets to be topmost. So even ignoring DirectX, you can't ever guarantee your window will always be on top. You may attempt to be clever and keep stealing the topmost status, but Raymond Chen explained why that's an evil act.
It sounds like you're trying to make a game overlay so that point wouldn't really matter too much. DirectX and other GPU-accelerated graphics render on a "layer" above GDI. There's no way to use GDI to render in front of DirectX. I know it's possible to hook into games and create an overlay (Steam does this and I've used some other utilities with overlay) but I've never seen a tutorial or article about how to do it. My guess is it involves black magicks. Sorry I can't be of more help.
Re: TopMost In Visual Basic.
@ gep13
to tell you the truth Im not sure if I did post in the correct forums
I thought I posted in the right area, as I am using Visual basic 2008
@ Radjesh Klauke
That's not how I wanted to do it. as it doesn't go over the 'Full screen' Game
@ J-Deezy
yes you got it :) but I found a Semi Fix. I put the Game in Windowed Mode.
(although Tedious it works for the most part it stays above the game)
@ Sitten Spynne
So It would be somewhat Hard to code is what Im guessing :/ But non the less.
:) I got the Semi Fix. that I was talking about. :D thanks anyways.
Re: TopMost In Visual Basic.
I got interested in the subject as I have created a program that also is "semi fixed".
You might want to take a look at this library: http://directdrawoverlaylib.codeplex.com/
Re: TopMost In Visual Basic.
Quote:
Originally Posted by
Clod14
@ gep13
to tell you the truth Im not sure if I did post in the correct forums
I thought I posted in the right area, as I am using Visual basic 2008
See, this is where I am a little confused. It looks to me like you did post in the right forum, as there is no mention of a moderator moving it. However, I really only look at the ASP.Net forum, and I am 100% convinced that I got to this thread from a thread in the ASP.Net forum, so I am really not sure that I understand what happened.
No harm done though.
Gary