SIGN UP MEMBER LOGIN:    
ARTICLE

StatusStrip Control in C#

Posted by Mahesh Chand Articles | Windows Controls C# November 15, 2005
The StatusStrip control available in Visual Studio 2005 is a powerful StatusBar control with the features provided by StatusBar in previous versions. Besides the StatusBar features, StatusStrip also provides ProgressBar, DropDownButton, SplitButton, and Label features.
Reader Level:
Download Files:
 

If you've used StatusBar control in Visual Studio .NET, you must be annoyed when you wanted to add a progress bar, a drop down control, or an image to the StatusBar.

StatusStrip control available in Visual Studio 2005 is a powerful StatusBar control with the features provided by StatusBar in previous versions. Besides the StatusBar features, StatusStrip also provides ProgressBar, DropDownButton, SplitButton, and Label features, which means we can add a progress bar, a drop down button, a spit button, or a label control to the StatusStrip itself.

If you drag a StatusStrip control from Toolbox to the form, you will see an option to set various actions such as StatusStripPanel, ToolStripProgressBar, ToolStripDropDownButton, and ToolStripSplitButton. See Figure 1.

StatusStrip1.jpg
Figure 1.  StatusStrip control.

You can set various Actions of StatusStrip control such as behavior, layout and appearance and also edit items from Actions dialog. See Figure 2.

StatusStrip2.jpg

Figure 2. Actions options of StatusStrip.

Edit Items link launches Item Collection Editor, where you can add Panel and ProgressBar controls to the StatusStrip control. After adding StatusStripPanel and ToolStripProgressBar controls, these controls can be managed as individual controls an you can set their properties from Item Collection Editor itself. See Figure 3.

StatusStrip3.jpg

Figure 3. Item Collection Editor.

After adding a panel and progress bar control, StatusStrip looks like Figure 4.

StatusStrip4.gif
Figure 4. StatusStrip with a panel and progress bar.

Now new ProgressBar control is more powerful then ever. You can even set foreground color of it, which used to be a pain in previous versions. I set green as forecolor of ProgressBar and set its Value property to 30. Now new layout looks like Figure 5.

StatusStrip5.gif
Figure 5. ProgressBar with green foreground.

Summary

Windows Forms 2.0 StatusStrip control replaces previous Windows Forms StatusBar control. The StatusStrip control is more powerful control than StatusBar provides many built-in features such as progress bar, status bar, dropdown button, and splitter. In this article, I discussed how to create and use StatusStrip control and its features using Visual Studio 2005 IDE.

share this article :
post comment
 

Hi Mahesh, I  am really thankful for your Windows Forms 2.0 StatusStrip Control, I believe this will add some more value to  our current project.  the control has really helped us to  explore more in the Dynamic progress imaging solution in which we are currently involve with. we ae tryiong to  manipulate live images in indicating a progress of an event recorded form a serial port instead of costly live feed video transmission we are simulating the status bar control with respect to  the actual event occurence. Seshadri XLOG Chennai

Posted by Srinivasan Seshadri Feb 27, 2010

I'm trying to dock the progress bar in the new toolstrip to the right hand corner. Any ideas how to do this, I couldn't find any property to set that worked as I expected?g  

Posted by Carl Apr 13, 2006

Hello,
Intellisense is a part of Visual Studio IDE. If you do not have Visual Studio, you can download some third party tools that support Intellisense. For example, click on this link: http://www.icsharpcode.net/OpenSource/SD/Default.aspx. This tool is an IDE.

Cheers

 

Posted by Mahesh Chand Nov 22, 2005

for example: using System.Data.ADO but I don't find "ADO" from my programming Please, Show me ? I want used to library and download it where ? How ? /..... Please, help me . I 'm a studient poor , because I have no any a books , Now, i want used to it , please, help me .

Posted by Le Phuc Toan Phuc Toan Nov 22, 2005

Good to know about this control.

Posted by Bhasker Das Nov 15, 2005
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Nevron Gauge for SharePoint
Become a Sponsor