...
procedure TMainFrm.Button1Click(Sender:TObject);
var
teststr:string;
begin
if SecondFrm.ShowModal=MrOk then
teststr:=SecondFrm.Label1.caption;
//This is what I have been trying and this workaround won't work at all.
MainFrm.Enabled:=true;
MainFrm.Visible:=true;
MainFrm.ActiveControl:=MainFrm;
end;
...