Groups | Blog | Home
all groups > dotnet windows forms controls > june 2008 >

dotnet windows forms controls : ToolStripStatusLabel (.NET 3.5): Can't clear text property


Axel Dahmen
6/20/2008 7:18:42 PM
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 =3D "processing " + s;
...
}

statusLabel.Text =3D "";

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
6/20/2008 7:30:20 PM
Ooops... Found the problem.... I was clearing the statusBar.Text, not =
AddThis Social Bookmark Button