Hi,
in a WinForms application I'm using a System.Windows.Forms.StatusStrip control. In this control I'm using a System.Windows.Forms.ToolStripStatusLabel control.
What's strange is that I can't clear the text of the ToolStripStatusLabel control once I've set it to something else but String.Empty.
Here's some sort of code I'm using:
foreach (string s in someStrings)
{
statusLabel.Text = "processing " + s;
...
}
statusLabel.Text = "";
After this routine has run, statusLabel always displays the last "processing ..." string. But it is supposed not to display anything.
Can anyone please enlighten me on what I'm doing wrong here?
TIA,
Axel Dahmen
Axel Dahmen - 20 Jun 2008 18:30 GMT
Ooops... Found the problem.... I was clearing the statusBar.Text, not the statusLabel.Text property... Problem solved... :)