0

I know how to put my Form on top, but I'm striving for a more specific behavior: I want my window to be on top of the screen, forcing all other windows half screen. To illustrate what I want, open the Windows Magnifier tool and dock it to the top of the screen.

Does anyone know how to achieve this? Hints or nudges in the right direction most welcome :)

Thanks !!

Dyte
  • 259
  • 3
  • 13
  • This [previous question](http://stackoverflow.com/questions/589268/how-to-make-my-windows-form-app-snap-to-screen-edges) will help you out on the docking on the desktop – curtisk Jan 25 '11 at 16:28

2 Answers2

1

There is an artice which covers it here - http://www.codeproject.com/KB/shell/csdoesshell3.aspx

The article contains a finished library which can be used in your own application.

Craig T
  • 1,031
  • 1
  • 7
  • 13
0

I would not be surprised if to accomplish this you would need to call directly SetWindowPos or other native apis.

Davide Piras
  • 43,984
  • 10
  • 98
  • 147