Why can't I hide a tab page?

  • Thread starter Thread starter Jon Q Jacobs
  • Start date Start date
J

Jon Q Jacobs

Guest
In my Windows Form I have a tab control with two tab pages. In form load event handler I have:

tc1.TabIndex = ix;
TabPage tp = tc1.TabPages[ix];

tp.Show();

for (int i = 0; i < tc1.TabPages.Count; i++)
{
if (i != ix)
tc1.TabPages.Hide();
}
But both tab pages still show. Why can't I hide one?

Thank you,


Jon Jacobs, There are 10 kinds of people: those who understand binary and those who don't

Continue reading...
 
Back
Top