title: Dynamically change a Windows Form window title (during runtime)
body: <p>I am writing a C# .NET 4.5-based Windows Forms application.</p>
  
  <p>I know how to programmatically modify the title of the main window like this:</p>
  
  <pre><code>public partial class MyForm: Form
  {
      public MyForm()
      {
          InitializeComponent();
          if (!PRODUCTION)
          {
              this.Text += " (test environment)";
          }
      }
   }
  </code></pre>
  
  <p>However, all of my research so far has shown that this must be done <em>before</em> the form is loaded/shown.  I'd like to be able to change the window title while the app is running, just like a web browser changes its window title to include the name of the current webpage.</p>
  
  <p>Is this possible?  If so, how?</p>
  
  <p>Thanks!</p>