title: Why doesn't my run-time-created component appear on the form?
body: <p>I am testing the example that came from this Q&amp;A <a href="https://stackoverflow.com/questions/9479872/component-creation-joining-components-together">Component Creation - Joining Components Together?</a> to learn how to create a custom/composite component.</p>
  
  <p>While the installed component from the example works dragging on to the form, I can't seem to create it at run time.</p>
  
  <pre><code>procedure TForm1.Button1Click(Sender: TObject);
  var
  MyPanel2 : TMyPanel;
  begin
  MyPanel2 := TMyPanel.Create(Form1);
  With MyPanel2 do
    begin
      Left := 10;
      Top := 10;
      Width := 400;
      Height := 400;
      Visible := True;
      Image.Picture.LoadFromFile('C:\test.png');
    end;
  end;
  </code></pre>
  
  <p>I tried both self and Form1 as the owner.  Played with properties of both the panel and the image.</p>
  
  <p>Just not sure what I am doing wrong.  No errors except when I forgot to add pngimage to my uses.  Steps through the code just fine, nothing visually occurs for the run time creation.</p>