Name
StatusBar
Synopsis
This Control can be docked at the bottom of a form
to display either a simple Text string, or a
number of StatusBarPanel objects.
Initially, the status bar will not contain any panels, and text will
be displayed. You can Add() one or more
StatusBarPanel objects to the
Panels property and enable the
ShowPanels property, and it will display the
panels instead, aligned from left to right.
For resizable containers, you can optionally display a
SizingGrip in addition to the basic imagery.
Note that right-to-left reading forms will continue to display the panels on the left and the grippy on the right, regardless of the setting.
You can customize the rendering of the panels by binding to the
DrawItem event. Any
StatusBarPanel that is enabled for owner draw will
cause the StatusBar to raise this event. See
StatusBarDrawItemEventArgs for more information.
public class StatusBar : Control { // Public Constructors public StatusBar(); // Public Instance Properties public override Color BackColor{set; get; } // overrides Control public override Image BackgroundImage{set; get; } // overrides Control public override DockStyle Dock{set; get; } // overrides Control public override Font Font{set; get; } // overrides Control public override Color ForeColor{set; get; } // overrides Control public ImeMode ImeMode{set; get; } // overrides Control public StatusBarPanelCollection Panels{get; } public bool ShowPanels{set; get; } public bool SizingGrip{set; get; } public bool TabStop
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access