How to interact with dock tab group in WinForms Docking Manager?
Docking methods
Please refer the various methods and code snippets from below, which are used to interact with DockTabGroup:
ActivateControl:
The ActiveControl method of a DockingWindow, set focus to a control which is passed as its argument.
C#
//Changing focus to a particular control dockingManager1.ActivateControl(panel1);
VB
'Changing focus to a particular control DockingManager1.ActivateControl(Panel1)
SetTabPosition:
The DockingManager has a method called SetTabPosition, used to set tab position for a particular control which is passed as its argument.
C#
dockingManager1.SetTabPosition(panel1,1);
VB
DockingManager1.SetTabPosition(Panel1,1)
GetTabPosition:
The DockingManager has a method called GetTabPosition, used to get tab position for a particular control which is passed as its argument.
C#
//Getting the tab position dockingManager1.GetTabPosition(panel1);
VB
' Getting the tab position DockingManager1.GetTabPosition(Panel1)
Sample: http://help.syncfusion.com/support/samples/kb/Tools.Windows/TDInte/Interaction.zip
UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/tabbed-window#change-tab-index-by-programmatically