Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
How to add dyanamic tab page and controls in ultraTabControl
posted

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

  • 71886
    Suggested Answer
    Offline posted

    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.