We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

MDI Tab position

Hi, I''m automating our UI Testing process. When working with Tabbed MDI Forms I need to obtain the Tab location for selecting any tab with the mouse, how can I get this information??? Thanks, Werner.

1 Reply

MJ Mano J Syncfusion Team February 6, 2006 07:36 AM UTC

Hi Werner, I apologize for the delay. You can get the tab rect using the GetTabRect method of MDITabPanel. Please refer to the code snippet below private void TabControl_SelectedIndexChanged(object sender, EventArgs e) { foreach(TabHost tabHost in this.tm.TabGroupHosts) { Rectangle rect = tabHost.MDITabPanel.GetTabRect(tabHost.MDITabPanel.SelectedIndex); Console.WriteLine(rect.ToString()); } } I have attached a sample that illustrates this completely. Please let me know if this meets your requirements. Thanks for using Syncfusion products. Regards, Mano TabbedMDI_Tabs_Location.zip

Loader.
Live Chat Icon For mobile
Up arrow icon