Possible Duplicate:
How to make a window always stay on top in .Net?
Creating a .NET app that “docks” to the side of the screen and limits other windows' sizes when maximized
I have a C# Winforms application that runs similarly to the menu bar on a Mac. It’s only 24 pixels high, is the full width of the screen, located at the top and should be the top most application.
However, when I run other applications and maximize them, they go under my application and I cannot see the control bar (icon, name, minimize, maximize and close buttons) for them. What I would like is for other maximized applications to maximize to just under my application, so I can still see the other applications control bar.
Is there a way to prevent other applications from doing this, and getting them to maximize under my application?
Thanks,
Karl
This is a duplicate of Creating a .NET app that "docks" to the side of the screen and limits other windows' sizes when maximized. Please note that the link to the C# version of the code is dead. Here are the relevant, working links:
http://www.codeproject.com/Articles/6741/AppBar-using-C
http://msdn.microsoft.com/en-us/library/windows/desktop/cc144177(v=vs.85).aspx