- Investigating Unsupported Controls in the .NET Compact Framework
- Investigating Unsupported System.Windows.Forms Functionality in the .NET Compact Framework
- Working with the Visual Studio .NET Form Designer
- Understanding the Different Windows Forms Target Platforms
- Working with the Form Control
- Programming the Button Control
- Using the TextBox Control
- Using the Label Control
- Working with RadioButton Controls
- Using the CheckBox Control
- Using the ComboBox Control
- Using the ListBox Control
- Using the NumericUpDown Control
- Using the DomainUpDown Control
- Programming the ProgressBar Control
- Using the StatusBar Control
- Using the TrackBar Control
- Using the ToolBar Control
- Adding Menus with the MainMenu Control
- Using a ContextMenu Control in an Application
- Using the Timer Control
- Using the OpenFileDialog and SaveFileDialog Controls
- Using the Panel Control
- Using the HScrollBar and VScrollBar Controls
- Using the ImageList Control
- Using the PictureBox Control
- Using the ListView Control
- Using the TabControl Control
- Using the TreeView Control
- Working with the DataGrid Control
- In Brief
Using the StatusBar Control
The status bar is an area, at the button of a form, that displays status information to the user. This status bar can display only text information. A common use of a status bar is to provide users with a simple sentence that describes the state of the application or tell the user what operations can now be executed, given the current state of the application. It can also replace a ProgressBar control to display the status of time-consuming operations.
To update a StatusBar control, simply change the value of its Text property. When the text is changed, the control is automatically repainted to display the new text, just like a Label control. Figure 3.13 displays an application that starts and stops a Timer control. Every time the Timer control fires, the status bar is updated.
Figure 3.13 A sample application that showcases the StatusBar control running on the Pocket PC 2002 emulator.