How can I duplicate a "tabPage" inside of my TabControl?
I tried this:
//My TabControl: tc
//My Tab ID: 0
TabPage newPage = new TabPage();
foreach (Control control in tc.TabPages[0].Controls)
{
newPage.Controls.Add(control);
}
tc.TabPages.Add(newPage);
but it doesn't work.
Thanks in advance.