Attachable form

How do you create a โ€œdockableโ€ window-like form in Visual Studio?

+4
source share
6 answers

Any user control (compound, not inherited) in winforms can be docked because it is really just a panel at the bottom. Combine this with the tablelayout panel for a high-level layout of your form, and you have all the parts. But you still have to implement all the glue and maintain the user interface yourself.

0
source

I used Weifen Luo "DockPanel Suite" for a good effect. This is an open source library that imitates the docking of the Visual Studio system very well, including nested dockings, floating windows, tabbed windows, etc. You can download its source and see its approach there if you prefer your own, simpler solution.

Sourceforge project here: http://sourceforge.net/projects/dockpanelsuite

+6
source

We use Weifen Luo "DockPanel Suite" for our project and are very pleased with it.

+3
source

One of the best I've seen and used is SandDock from Divelements , they have both WinForms and a WPF version.

+1
source

I used the CodeJock DockingPane ActiveX Control to create dock panels earlier.

+1
source

You probably want to use someone else's component for this, instead of trying to roll on your own, and there is no WinForms own way to do this.

There is a free library for CodeProject for this purpose, but I have not tried it.

http://www.codeproject.com/KB/toolbars/DockContainer.aspx

+1
source

Source: https://habr.com/ru/post/1276812/


All Articles