This documentation is archived and is not being maintained.

StatusBarPanelStyle Enumeration

Specifies whether a StatusBarPanel object on a StatusBar control is owner-drawn or system-drawn.

[Visual Basic]
Public Enum StatusBarPanelStyle
public enum StatusBarPanelStyle
__value public enum StatusBarPanelStyle
enum StatusBarPanelStyle


Use the members of this enumeration to set the value of the Style property of the StatusBarPanel class. The Style property determines the way in which the StatusBarPanel will be displayed. StatusBarPanel objects can display simple text or be owner-drawn. Owner-drawn StatusBarPanel objects support displaying images or a different font from the rest of the StatusBarPanel objects on a StatusBar control, while system-drawn StatusBarPanel objects are used to display only text (or text and an icon if an icon is specified in the Icon property of the StatusBarPanel). To perform the owner-draw operations on an owner-drawn StatusBarPanel, use the DrawItem event of the StatusBar control.


Member name Description
OwnerDraw The StatusBarPanel is drawn by the owner.
Text The StatusBarPanel displays text in the standard font.


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

System.Windows.Forms Namespace | StatusBarPanel | Style | StatusBar | DrawItem