I have a small .NET program that produces a fullscreen window. I would like to keep this window the backmost window (i.e. other windows should open on top of it, and it should not come to the front when clicked on). Is there any practical way to do this under Windows Presentation Foundation?
Share
As far as I know, you’ll have to P/Invoke to do this right. Call the
SetWindowPosfunction, specifying the handle to your window and theHWND_BOTTOMflag.This will move your window to the bottom of the Z order, and prevent it from obscuring other windows.
Sample code: