David Smith

David Smith

  • NA
  • 2k
  • 0

Tab Control Pages

Oct 6 2017 1:21 PM
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);

Answers (1)