title: How to programmatically construct components at runtime using C++ Builder?
body: <p>Very basic C++ Builder question. I want to create a TButton at runtime. I would have thought that the following code would do it, but I see no button on the form:</p>
  
  <pre><code>__fastcall TForm2::TForm2(TComponent* Owner): TForm(Owner)  
  {  
      TButton* b = new TButton(this);  
      b-&gt;Height = 100;  
      b-&gt;Width = 100;  
      b-&gt;Left = 0;   
      b-&gt;Top = 0;   
      b-&gt;Caption = "Testing";  
      b-&gt;Visible = true;  
      b-&gt;Enabled = true;  
  }  
  </code></pre>
  
  <p>Thanks for any help!</p>