Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
Can I determine where the tabs will be opened?
posted

I have a mdi form with a pannel docked to the top and a pannel docked to the bottom.

In the middle there is a grid.

I want that when a line in the grid is being double-clicked, a new tab will be added to the pannel on the bottom of the form.

 

Right now it does that by adding a tab to the TabControl and loading a UserControl... but this is not what I want since I want to be able to group tabs horizontally (And this cannot be done with UserControls and with the TabControl).

 

When I try to add a new form to the MDI form, it just adds it over the grid in the middle.

 

Is it even possible to add the forms/tabs to the panel on the bottom, or to an area which has docking?

 

10x for your reply.

  • 44743
    posted

    Is the grid defined on the mdi parent Form or one of the children? If the grid is on the parent, you can try setting its Dock property to Top. That will position the mdi parent's MdiClient control below the grid and no mdi children will display over it.