example:
procedure TForm1.Button1Click(Sender: TObject);
begin
form2 := TForm2.Create(Self);
form2.ShowModal;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
FreeAndNil(Form2);
//i want to give control to main window here, but i cannt.
end;
I want to give control to main thread after FreeAndNil a Modal window.
how can i do?
thanks.
procedure TForm1.Button1Click(Sender: TObject);
begin
form2 := TForm2.Create(Self);
form2.ShowModal;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
FreeAndNil(Form2);
//i want to give control to main window here, but i cannt.
end;
I want to give control to main thread after FreeAndNil a Modal window.
how can i do?
thanks.