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
185
Silent creation of a Tab
posted

Hello

Is there any way to create a tab in the background without deactivating the current tab.

I'm currently doing the following

child.MdiParent = MdiParent;

 

child.Show();

but this immediately switches to the new tab, presumably because of the Show().

I would like to create the tab, initially empty and not activated, and then fill the contents when selected through a user mouse click. This would mean assigning the child form to the tab, but the Form property is read-only.

 

Kind regards

David