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
45
Infragistics.Win.UltraWinTabControl.UltraTab
posted

How is that some one can access the diferent controls added to the tab, at run time, when the controls and the tab´s are added at run Time....

    private void listBoxImage_MouseDoubleClick(object sender, MouseEventArgs e)
        {
                try
                {
                    if (TabControl.HasChildren)
                    {
                        Infragistics.Win.UltraWinTabControl.UltraTab currentTab = TabControl.SelectedTab;
                        NLView _videoControl = currentTab.TabControl.Controls[3] as NLView;
                    }
                }
                catch (Exception ex)
                {
                    UpdatemessageBoard(ex.Message);
                }

----------------------

Here I am trying to access the inerlist of controls... I allways get a null...

Thanks, to any one that can herlp me! 

Parents
No Data
Reply
  • 5389
    Verified Answer
    posted

    orangelfl,

    The issue here is that currentTab.TabControl points back to the UltraTabControl itself.  Rather than using currentTab.TabControl, try using currentTab.TabPage, which points to the tab's internal UltratabPageControl, which is where the controls in the tab sit.

    ~Kim~

Children