Articles in this section
Category / Section

How to interact with dock tab group in WinForms Docking Manager?

3 mins read

Docking methods

Please refer the various methods and code snippets from below, which are used to interact with DockTabGroup in WinForms DockingManager

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)

UG document link:  https://help.syncfusion.com/windowsforms/docking-manager/tabbed-window#change-tab-index-by-programmatically

Conclusion

I hope you enjoyed learning about how to interact with dock tab group in WinForms Docking Manager.

You can refer to our WinForms Docking Manager feature tour page to know about its other groundbreaking feature representations and documentationto understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied