MDI Dock Manager Child Form Index

2 posts, 0 answers
  1. mitch arias
    mitch arias avatar
    2 posts
    Member since:
    Jul 2008

    Posted 03 Jun 2009 Link to this post

    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.



  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 09 Jun 2009 Link to this post

    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,
    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.
Back to Top