Kriti

Kriti

  • NA
  • 60
  • 0

Maintaining tab Sequence.

Aug 23 2010 8:40 AM
There are Tab1,Tab2,Tab3,Tab4 In the Gui page

The Page contains two buttons VisiblePage1 and VisiblePage2 .When i Click VisiblePage1 button,Tab1 is visible with all the tabs except Tab2.(Tab2 is not visible)
After clicking VisiblePage2 button,each and every tab is visible.

The Problem lies as follows,When I Click VisiblePage2 button,tab2 comes last (Tab1,Tab3,Tab4,Tab2)
The Sequence of the tabs are not maintained

private void VisiblePage1_CheckedChanged(object sender, EventArgs e)
{
if (VisiblePage1.Checked == true)
{
this.tabAll.Controls.Remove(this.EmplPage);

}
}

private void VisiblePage2_CheckedChanged(object sender, EventArgs e)
{
if (VisiblePage2 .Checked == true)
{
this.tabAll.Controls.Add(this.EmplPage);
}

}
tabAll contains all the tabs.
How to maintain the tab1,tab2,tab3,tab4 Sequence everytime after clicking the bottons?

Answers (2)