Invoking XtraTabbedMdiManager

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 3
Joined: Tue Mar 30, 2010 9:38 am

Invoking XtraTabbedMdiManager

Post by Frank » Tue May 04, 2010 4:11 pm


I tried to acces the close-Buttons of some tabPages, which are MDI-Forms [1]. But I can't cast System.Windows.Forms.Control into DevExpress.XtraTabbedMdi.XtraTabbedMdiManager. The XtraTabbedMdimanager contains a collection of tabPages (and I hope also a way to the close-Buttons or the
RanorexSpy ist only recognizing the whole workspace as System.Windows.Forms.MdiClient.


Anyone who worked with Devexpress and these MDI-Forms? Any hints?

[1] ... velup=true

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Invoking XtraTabbedMdiManager

Post by Ciege » Tue May 04, 2010 5:14 pm

I have this same issue but worked around it due to the way we have implemented the tabs allow for a Right-Click on the tab itself and select Close.
Another possibility for you is to get the current width of the tab and click on the right 1/4 of the tab (might need to adjust that) and *hope* the tab close gets clicked.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Invoking XtraTabbedMdiManager

Post by Support Team » Wed May 05, 2010 9:42 am

Frank wrote:But I can't cast System.Windows.Forms.Control into DevExpress.XtraTabbedMdi.XtraTabbedMdiManager.
Please, make sure that you use the right type of that control, i.e. the type that is displayed for the "ControlType" attribute in Ranorex Spy when you spy the MDI control. In the DevExpress MDI sample I have the type is "System.Windows.Forms.MdiClient". XtraTabbedMdiManager is a component, not a control, and is therefore not a UI element visible in your form, but some background object that handles MDI controls.

Another possibility to close tabs is to use the Form.Close action/method on the individual tab pages, which are identified as Ranorex.Form instances.

Ranorex Support Team