When I run the following nested loop thru the UltraTabPages, it only runs for the first tabpage and groupbox, then exits. I need help in order to run the foreach loops for the four UltraTabPages.
/// <summary> /// True for ReadOnly /// </summary> /// <param name="b"></param> private void DecideReadOnly(bool b) { foreach(Infragistics.Win.UltraWinTabControl.UltraTab tab in ultraTabControl1.Tabs) { foreach (GroupBox gb in ultraTabControl1.Tabs[tab.Key].TabPage.Controls) { foreach (Control c in gb.Controls) { if (c is Infragistics.Win.UltraWinEditors.UltraDateTimeEditor) { var dte = (Infragistics.Win.UltraWinEditors.UltraDateTimeEditor)c; dte.ReadOnly = b; } if (c is TextBox) { var txt = (TextBox)c; txt.ReadOnly = b; } } } } }