, , , . .Net 4.6.
Note that this solution does not actually create new controls, but simply reinstalls them all on a new TabPage tab, so you need to use AddRange every time you change the tabs. A new tab displays the same controls, content, and values.
// Create an array and copy controls from first tab to it.
Array tabLayout = new Control [numberOfControls];
YourTabControl.TabPages[0].Controls.CopyTo(tabLayout, 0);
// AddRange each time you change a tab.
YourTabControl.TabPages[newTabIndex].Controls.AddRange((Control[])tabLayout);
Bogna source
share