devxlogo

Stay on Bottom Forms

Stay on Bottom Forms

Question:
Is there a way to make a window like the Stay on Top window, but make it stay behind? For example, if you click on the desktop it does not come to the front. I would like to make a form that does the same thing: stays usable but from behind all other applications. I hope this makes sense.

Answer:
What you’d have to do in this case is override the form’s WinProc method and intercept the WM_NCACTIVATE message. When you do that, you can set the message value to 0 and the form will not come to the top.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist