title: How to call another form using a panel in the main form?
body: <p>I am coding in Delphi 10. I have two forms: <code>FormPrincipal</code>, which is the main form, and <code>Formbanco</code> the one I want to call.</p>
  <p>In <code>FormPrincipal</code> I put a panel <code>PanelCorpo</code> and I want to call <code>Formbanco</code> and show it in the position of this panel.</p>
  <p>I have tried two methods, but both did not work. See below:</p>
  <h3>1st)  <code>FormPrincpal</code> calling <code>Formbanco</code> using <code>Showmodal</code>:</h3>
  <pre><code>// TActionlist  OnExecute event 
  
  procedure TFormPrincipal.AbreFormBancoExecute(Sender: TObject);
  begin
    try         
      Application.CreateForm(Tformbanco,Formbanco);
      Formbanco.Parent := PanelCorpo;
      Formbanco.Align  := alclient;
      Formbanco.Showmodal;
    finally
      Freeandnil(formbanco);         
    end;
  end;
  </code></pre>
  <p>The behavior was: it opened the called form <code>Formbanco</code> properly, but frozen. Both forms did not allow to focus!</p>
  <h3>2nd) FormPrincpal calling Formbanco using <code>Show</code>:</h3>
  <pre><code>// TActionlist  OnExecute event 
  
  procedure TFormPrincipal.AbreFormBancoExecute(Sender: TObject);
  begin
    try
      Application.CreateForm(Tformbanco,Formbanco);
      Formbanco.Parent := PanelCorpo;
      Formbanco.Align  := alclient;
      Formbanco.Show;
    finally
      Freeandnil(formbanco);         
    end;
  end;
  </code></pre>
  <p>The behaviour was: it blinks very quickly the <code>Formbanco</code>, almost not visible,  and continues in <code>FormPrincipal</code>. I can't access <code>Formbanco</code>!</p>
  <p>I do appreciate help on this.</p>