You just have to set the TopMost property of your form to true. So like this:
this.TopMost = true;
Hope that helps.
I've written a small app to sniff messages from WinLIRC. The app displays a 1-character window to tell me which "mode" it's in (defines the function of buttons on the remote).
My problems is that Frodo likes being on top. And it tends to hide my window after a mouse (er, finger) click.
How do I get my window back on top? I'm using C# (though that shouldn't matter - it's likely a sendmessage command I'll have to use). Currently, I'm passing the window handle into SetForegroundWindow in USER32.DLL, but that's not cutting the mustard. Anyone have any thoughts on this?
That only works on windows running in the same process... Thanks for the suggestion, though.Originally Posted by xBrady
I guess I didn't understand what you are trying to do. So you have your app that sniffs messages from another app and is not staying on top? Or is it the other program that won't stay on top? I'm not seeing where you are starting another process.Originally Posted by PatO
As far as this thread is concerned, my program is a standalone appliction. It has a window which I need to always keep on top. On top of Frodoplayer, at any rate.
In 95, this was easy to do. In fact, MS removed this capability because it was a major security risk (think virus software). I'm thinking that there may be a few options, but am uncertain how to implement them, hence the question.
A couple I can think of are: Set up a windows message to detect when focus is lost and redraw the window on top. Integrate into the same process Frodo is running and use the TopMost property (can FrodoComm/Svcs do this?). Use a timer to force it on top.
Any other suggestions? I'm going to start digging through MSDN....
Doh! That DOES work...Originally Posted by xBrady
I sit corrected. You da man!