Rex,
>I found the problem. In the New button you call the cBizObjMaintBaseForm.New() in which you clear all the UIEnabler.lActivated properties in each page of the pageframe. In the cPageFrame.ClearUIEnablerlActivated method you clear the lActivated alright, but you don't check to see if the container has already been created.
>
>I replaced the old code in the cPageFrame.ClearUIEnablerlActivated method with:
>
>LOCAL loPage
>
>FOR EACH loPage in This.Pages
>
>IF TYPE("loPage.cntControls") = "O"
>loPage.RemoveObject(loPage.cntControls.Name)
>ENDIF
>loPage.UIEnabler1.lActivated = .F.
>ENDFOR
Thanks for the heads up...I'll check it out.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com