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.
Unfortunately, activation email could not send to your email. Please try again.

MDI Tab position

Thread ID:

Created:

Updated:

Platform:

Replies:

40473 Feb 3,2006 09:10 AM Feb 6,2006 02:36 AM Windows Forms 1
loading
Tags: Tools
Werner
Asked On February 3, 2006 09:10 AM

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 02:36 AM

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

CONFIRMATION

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.

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.

;