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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MDI Tab position

Thread ID:





40473 Feb 3,2006 02:10 PM UTC Feb 6,2006 07:36 AM UTC WinForms 1
Tags: Tools
Asked On February 3, 2006 02:10 PM UTC

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.

Mano J [Syncfusion]
Replied On 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon