Hello,
You can take the following step to accomplish this task.
1. Create a User Control named “MyTabControl�for example.
2. Then you will see a blank area in the VS designer, now you can put tabcontrol with tabpages 1,2,3 onto that area and design it.
3. In the form where tab A,B,C is placed, use the following code to add MyTabControl
MyTabControl myTabCtrl = new MyTabControl();
tabA.Controls.Add(myTabCtrl);
myTabCtrl = new MyTabControl();
tabB.Controls.Add(myTabCtrl);
myTabCtrl = new MyTabControl();
tabC.Controls.Add(myTabCtrl);
After that, A,B,C tabpages all contain the set of controls. Do you understand my meaning?
Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!