Using the StatusBar Control


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.

graphics/03fig13.jpg



Microsoft.NET Compact Framework Kick Start
Microsoft .NET Compact Framework Kick Start
ISBN: 0672325705
EAN: 2147483647
Year: 2003
Pages: 206

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net