How to Hide Tabcontrol Pages and Show TabControl pages? For some reason after I hide and show the first time. I can not show and hide no more. Can someone explain. I have a button for showing and hiding at anytime
Hide
tpDiagnostics.Hide();
tpProjectDiagnostics.Hide();
tabControl2.TabPages.Remove(tpDiagnostics);
tabControl2.TabPages.Remove(tpProjectDiagnostics);
Show
tpDiagnostics.Show();
tpProjectDiagnostics.Show();
tabControl2.TabPages.Insert(1, tpDiagnostics);
tabControl2.TabPages.Remove(2, tpProjectDiagnostics);