Create a window system modal

Posted in Forms

For create a new window modal you should remove this line from the project file Application.CreateForm(TForm2, Form2); And use in your program this standard construction:

with TForm2.Create(nil) do
try
  ShowModal;
finally
  Free;
end;