Hi,
I am trying to add dynamically tab page and controls in UltraTabControl. The dynamic controls are not displaying tab page(tabControlPage).
here is the code
UltraTab tab1 = new UltraTab();
UltraTabPageControl tab1Control = new UltraTabPageControl();
tab1.TabPage = tab1Control;
tab1.Text ="TAB1";
tab1.Active =true;
Panel pnl = new Panel();
Button btn = new Button();
btn.Name ="1";
btn.Text ="Hai";
pnl.Controls.Add(btn);
Button btn2 = new Button();
btn2.Name ="2";
tab1Control.Controls.Add(btn2);
this.ultraTabControl1.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab
[] {tab1});
please help me
Hello vinod,
It seems to me that you have missed a line, adding the tabpagecontrol object, please try this out:
this.ultraTabControl1.Controls.Add(tab1Control);
I will be waiting for your feedback, after you test this.
i have added the above mentioned code. but still the problem not solved.
it is working fine if all control are created dynamicaly like panel,button ...etc .
my scenario is i have a splittercontainer and i am adding this ultraTabControl in one of splitContainer panel.
sorry. it was correct, i made a mistake. Now it is working fine. Thank you very much