public ODFFormControl FindControlById (string id, bool searchInSubforms) { if (searchInSubforms) { foreach (ODFForm f in ChildForms) { ODFFormControl ctrl; ctrl = f.FindControlById(id, searchInSubforms); if (ctrl != null) return ctrl; } } foreach (ODFFormControl c in _controls) { if ( c != null) { if (c.ID == id) return c; } } return null; }