Comment mettre à jour StatusStrip dans les Windows Forms

Je suis en train de mettre à jour la barre d'état dans mon Windows Forms application, mais rien n'est affiché. Voici mon 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();
}
InformationsquelleAutor Luke101 | 2012-11-11