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
  • 150
    posted

    There is  MyTabControl inherited from UltraTabControl

    When MyTabControl is used = dropped on the form and tabs are added using properties window ( Design Time) ,

    code is generated in designer.cs file.

    Some of generated code uses UltraTabPageControl type, UltraTab type and other Ultra types.

    What would be the proper way to "turn off" generation of Ultra... types in designer.cs  

    And have MyTabControl work properly at Design time and at Run time ?

    Thank you

Reply Children