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.