Better way to keep window open

frm.Visible := false;
frm.ShowModal;

It's like magic.