procedure TMyPanelDialogForm.btnDeleteClick(Sender: TObject); begin HostMyPanel.DeleteMe; Close; end;