Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
287 | May 22,2002 08:34 AM UTC | May 1,2003 07:59 PM UTC | WinForms | 3 |
![]() |
Tags: Tools |
// To activate the docking window tab representing the treeView1 control Syncfusion.Windows.Forms.Tools.DockHost dhost = this.treeView1.Parent as Syncfusion.Windows.Forms.Tools.DockHost; Syncfusion.Windows.Forms.Tools.DockHostController dhc = dhost.InternalController as Syncfusion.Windows.Forms.Tools.DockHostController; // Verify that the control is docked as a tab group if((dhc.ParentController != null) && (dhc.ParentController is Syncfusion.Windows.Forms.Tools.DockTabController)) { Syncfusion.Windows.Forms.Tools.DockTabController dtc = dhc.ParentController as Syncfusion.Windows.Forms.Tools.DockTabController; Syncfusion.Windows.Forms.Tools.DockTabControl tabcontrol = dtc.TabControl as Syncfusion.Windows.Forms.Tools.DockTabControl; Syncfusion.Windows.Forms.Tools.DockTabPage activetab = tabcontrol.SelectedTab as Syncfusion.Windows.Forms.Tools.DockTabPage; // Verify that the control is not the selected tab if(activetab.dhcClient != dhc) { // Iterate tabpages and activate the treeview tab foreach(Syncfusion.Windows.Forms.Tools.DockTabPage page in tabcontrol.TabPages) { if(page.dhcClient == dhc) { tabcontrol.SelectedTab = page; break; } } } }Prakash Syncfusion, Inc.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.