Dyte
Dyte

Reputation: 259

Windows Forms Force everything half screen and put my form on top

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 !!

Upvotes: 0

Views: 1171

Answers (2)

Craig T
Craig T

Reputation: 1071

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.

Upvotes: 1

Davide Piras
Davide Piras

Reputation: 44605

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

Upvotes: 0

Related Questions