O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Status Bars

The StatusBar control can be used to display a status bar on a form. The StatusBar control has a Panels property that can be accessed at runtime. It represents a collection of individual StatusBarPanel objects. The StatusBarPanel class defines several properties that can be used to manipulate the panels, including the following:

  • Alignment controls whether text in a panel is left, center, or right aligned.

  • Autosize controls whether the panel automatically sizes itself to occupy the remaining area on the status bar. Choices include None and Spring.

  • BorderStyle controls the type of border used for the panel.

  • Text controls the contents of the panel.

  • Width and MinWidth control the width (in pixels) of the panel.

Step 1: Adding the StatusBar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required