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
230
form on ultraTab control
posted

Hi,

I am trying to add a form on Ultra tabcontrol at runtime... I added this at runtime... but i am getting this error..I did this using wintab control... how to do it with ultratab..

System.ArgumentException: Can only add an UltraTabPageControl to an UltraTabControl.
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.UltraTabControlCollection.Add(Control value)

 

Thanks

Rohit

 

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    UltraTab exposes a TabPage property which encapsulates the tab page control. You can add controls to this via the UltraTab.TabPage.Controls.Add method. I don't know if you can add a form to the Controls collection; if you can't you would have to use a UserControl instead, or add the controls that are on the form directly to the tab page's Controls collection.

Children