Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / June 2008

Tip: Looking for answers? Try searching our database.

ToolStripStatusLabel (.NET 3.5): Can't clear text property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Axel Dahmen - 20 Jun 2008 18:18 GMT
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... :)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.