I have a form MDIChild
that I open as follows:
Application.CreateForm(TfrmManProduto, frmManProduto);
However, sometimes I need this form in modal ... with some tips I adapted my code as follows for open it in modal mode:
Application.CreateForm(TfrmManProduto, frmManProduto);
frmManProduto.FormStyle := fsNormal;
frmManProduto.Visible := False;
frmManProduto.Position := poMainFormCenter;
frmManProduto.ShowModal;
That way it works, but it blinks until it shows on the screen.
I wonder if there is any way to not flash / display the form
until you get to call frmManProduto.ShowModal
;