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!
Hi Kim,
Thanks a lot for your message. I replaced the code with this line :
NLView _videoControl = currentTab.TabPage.Controls[0] as NLView;
And everything works fine now.
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~