title: How can I add a button to the layout? - C#
body: <p>I cannot find any methods to add the button to the layout.</p>
  <p>I am trying to add the child (button) to the layout, but I can't find any methods to do so.</p>
  <p><strong>Source Code:</strong></p>
  <pre><code>using System;
  using System.Windows.Forms;
  
  namespace WinForms
  {
      internal static class Program
      {
          /// &lt;summary&gt;
          ///     The main entry point for the application.
          /// &lt;/summary&gt;
          [STAThread]
          private static void Main()
          {
              Application.SetHighDpiMode(HighDpiMode.SystemAware);
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());
  
              Button button = new Button {Height = 100, Width = 100, Text = &quot;Test&quot;};
              
  
          }
      }
  }
  </code></pre>