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
150
Adding derived tab pages at Design Time
posted

Code below is a Design Time code.

It allows to add my tab pages to the tab control inherited from UltraTabControl. 

Design Time behavior sufficient so far, but not perfect ( until I click on first-tab-page, click does not do same for second tab page ).

Anything else has to be done to set up tab page or tab control or tab  for all this to work properly at Design and Run Time ?

UltraTab myTab =
new UltraTab();
myTab.Text = "My Tab";

myTab.TabPage = new MyTabPage();

MyTabControl.Controls.Add(myTab.TabPage);

MyTabControl.Tabs.Add(myTab);

Where :

public class MyTabPage : Infragistics.Win.UltraWinTabControl.UltraTabPageControl

and

public class MyTabControl: Infragistics.Win.UltraWinTabControl.UltraTabControl

 Thank you

 

Parents Reply Children
No Data