I am using Infragistics 7.3 version UltraTabControl.
I have written the following code to add tabs and controls to the tabs at run-time. I am calling addTabs() function 4 times, this means I have to get 4 tabs added to tab control. But 8 tabs are get added to tab control.
{
InitializeComponent();
TextBox tx2 = new TextBox();
addTab(tx1);
addTab(tx2);
addTab(tx3);
addTab(tx4);
}
page.Controls.Add(control);
tab.TabPage=page;
Please Reply,
Thanks in advance.
I see that you add the UltraTabPageControl to ultraTabControl1 and then add the UltraTab control to ultraTabControl1 again. Try removing the following line.
this.ultraTabControl1.Controls.Add(page);
Thanks for reply
If I remove the suggested line ,I get 4 tabs only.But the controls are not displayed in tab page.