Thanks for ur response
santhosh kapa public partial class Form1 : Form
{
private static int pageNumber=4;
private TabPage page = new TabPage();
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < pageNumber; i++)
{
page = new TabPage("TabPage" + pageNumber.ToString());
AddControlsToTabPage(page);
this.tabControl1.TabPages.Add(page);
this.tabControl1.SelectedTab = page;
}
}
As u have already seen my program i ahve three tabpages as default so when i add the next time by clicking the
add button i have to get tabpage 4 with the user control (50 to 100 controls) and when i click the add button
again i need to get tabpage 5 with the user control(50 to 100 controls).But with my above logic everytime click
i click on the add button i get 4 tabpages named "tabpage 4" with the controls added to the last tabpage ,when
i open the prevous added tabpages they are empty only the last tabpage will have those controls.
But my problem is while clicking the add button i need to get tappage 4 with the same 50 controls
then again click on the add button i need to get tabpage 5 with thos e same 50 controls and so on ...I f u ar not
clear with my requirement pls let me know.And if u ar free pls tell me wat all changes i have to do coz i am stuked out.
Thanks in advance