I am using a tabbedMDIManager on the same form, but the case in need solving is non-tabbed entries.
Heres an example:
Dim Button1 As New Button
Button1.Text = "Left"
DockingManager1.DockControl(Button1, Me, Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom, 200)
Dim Button2 As New Button
Button2.Text = "Middle"
Dim intWidth As Integer = Me.Width \ 2
DockingManager1.DockControl(Button2, Button1, Syncfusion.Windows.Forms.Tools.DockingStyle.Right, intWidth)
Dim Button3 As New Button
Button3.Text = "Right"
Dim intSecondWidth As Integer = Me.Width \ 3
DockingManager1.DockControl(Button3, Button2, Syncfusion.Windows.Forms.Tools.DockingStyle.Right, intSecondWidth)
If I set the width for the 3rd panel to 1/3 of the size, the middle panel is squeezed. I need a method to average out each panel, and to do this need to work out which panel is where in relative to its... friend.
So I add Button1 and find nothing else that is docked to the bottom. Next time I add Button2 I find that 1 item is already docked to bottom (I can check this by looping the controlsarray).
So now I need to add the new button at the right size (width /2) which seems to come near the mark.
Then, I add Button3 and find 2 controls, so have to set the width of those existing controls to 1/3 each to allow me to set 11/3 to the new panel. I was wondering how to change the size of tthe panels I find manually,OR if there is a better way to design this. I do not know how many of these Buttons I will have (its a form actually) or where they will go. Might have 4 on the left 3 on the right and 2 floating, its all up to the user.
PS: When I get down to a certain size (ie 100px) I will just maximise the control into the whole space, the idea of this system is to ensure that when a user opens a panel, they can see it, no more than that!!AutoSizingSample_d1e73def.zip