After hours searching, I still haven't found any solution to my need.
By saying Exclusively docking I mean that it takes a part of screen (Left, Right, Top or Bottom) and the rest other programs cannot use that part. If you have Windows 8, it looks like the small part of 2 divisions function in Win8.
I have the solution for WPF, but now I need to do it basing on WinForm.
Thanks in advance.
Your dock control strategy should involve avoiding causes of dock proliferation (gaps in crops, weakened crops, spreading of dock seeds), assessing the dock density, and then selecting appropriate control measures.
Remarks. Use the Anchor property to define how a control is automatically resized as its parent control is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the same position relative to the edges of the parent control when the parent control is resized.
Control.Dock. Controls that are docked fill the edges of the control's container, either the form or a container control. For example, Windows Explorer docks its TreeView control to the left side of the window and its ListView control to the right side of the window.
You could use this awesome solution over at code project (the author Corneliu is/was a MVP): http://www.codeproject.com/Articles/6045/Sticky-Windows-How-to-make-your-top-level-forms-to
Otherwise there is a great implementation from Hans Passant here: How to make my Windows Form app snap to screen edges?
Edit:
If you want to restrict other programs from using the space then try Arik Poznanski's c# Application Desktop Toolbars
method:
http://www.codeproject.com/Articles/3728/C-does-Shell-Part-3
I can check tomorrow, but I believe when I implemented this, I used this as a guide.
http://www.codeproject.com/Articles/6741/AppBar-using-C
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With