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
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.
Thanks Brian... User control worked....
As an option the ultratabbedmdimanager provides a tabbed control good for child forms.
May or may not be a good option depending on your circumstances.
Nick