Hi
Using the example image can you tell me how to do the following actions programmatically in C#.
The document windows (A1, B1 & C1) have been created using
DockingManager.SetWindowMode(control, WindowMode.Document);
where control is a standard WinForms UserControl in each case.
1) How would I replace the control "B1" with another control "D1" i.e. assuming the tab is index of B1 is 10 in the DockingManager.ControlsArray property how can I do this
var D1 = new UserControl() ;
DockingManager.ControlsArray[10] = D1;
The line above just seems to destroy the existing "B1" but doesn't replace it with "D1"
2) How do I programmatically close a tab so the control within the tab gets disposed . I can set the tabs visibility using DockingManager.SetDockVisibility(B1, false) but this doesn't cause the tabs control to get disposed. There doesn't seem to be an API call like DockingManager.CloseTab(B1) that I can find.
3) How do I programmatically change the order of the tabs so that for example the display as B1, A1, C1 instead of A1, B1, C1. Using DockingManager.SetTabPosition doesn't seem to work on DocumentMode tabs and results in either an exception or killing the content of the tab.
Many thanks
Steve