Israel

Israel

  • 700
  • 1.3k
  • 217.6k

TabControl on my control...

Aug 27 2014 6:55 AM
Hi!
 
I have two tabcontrols (tabControl1 and tabControl2). The first one have two pages (tabPage1 and tabPage2). The second tabControl have three pages (tabPage1, tabPage2 and tabPage3).
Then I want to move on those two TabControls anytime I want . Means if I click on the first tabControl1's page, the second "tabControl2" move on taking the last tabControl' location after to have clicked. And so on with the other tabControl...
In conclusion, I would like to see it taking the location where the last tabcontrol have been before to be clicked.
 
Look My codes but doesnt work properly: 
 
private void tabControl1_Click(object sender, EventArgs e)
{
   tabControl1.Location.Y = 277;
   tabControl1.Location.Y = 183;
}
 
private void tabControl2_Click(object sender, EventArgs e)
{
   tabControl2.Location.Y = 277;
   tabControl2.Location.Y = 183;
}
 
Thanx,
Israel. 

Answers (1)