This is a migrated thread and some comments may be shown as answers.

MDI Dock Manager Child Form Index

1 Answer 91 Views
Dock
This is a migrated thread and some comments may be shown as answers.
mitch arias
Top achievements
Rank 1
mitch arias asked on 03 Jun 2009, 03:01 PM
How do I determine a child form's index number located in DockManager.MdiChildren collection?  In other words, I'm trying to determine what tab a child form belong's to.  I tried the following code:

System.Array.IndexOf(oDockingManager.MdiChildren, oClientForm)

I only get 0 as a result, no matter which tab the form is located in.  Any help would be appreciated.

Thanks,

Mitch

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 09 Jun 2009, 05:00 PM
Hi mitch arias,

Thank you for the question.

I was not able to reproduce the described behavior. I tested a scenario similar to yours (with version Q1 2009 SP1 - v2009.1.9.414) and I got proper results. For your reference, I am attaching my test project. If you add the forms and click "Get index", you will notice that you get correct indices for the different forms in the Output.

If your case is different, please describe it in more details or open a new support ticket and send me a sample project.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
mitch arias
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or