title: How to update StatusStrip in Windows Forms
body: <p>I am trying to update the status strip in my <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="nofollow noreferrer">Windows Forms</a> application, but nothing is being displayed. Here is my code:</p>
  
  <pre><code>private void textBox1_TextChanged(object sender, EventArgs e)
  {
      lines = Regex.Split(textBox1.Text.Trim(), "\r\n");
      lineCount = lines.Count();
      statusStrip1.Text = "Lines: " + lineCount;
      statusStrip1.Refresh();
  }
  </code></pre>