Enable a TButton of an MDI ChildForm upon closing of another MDI ChildForm
问题 I have 2 MDI ChildForms and the Child1 has a TButton to open the Child2. I do not have any issue opening it at the same time disable the TButton to prevent Child2 from recreating again using TButton. Now, the challenge comes when I want the TButton of Child1 back to "enabled" when I closed the Child2. I am getting access error when doing these code: procedure TfrmChild2.FormClose(Sender: TObject; var Action: TCloseAction); begin child1_u.frmChild1.btnOpenChild2Form.Enabled := True; Action :=