This documentation is archived and is not being maintained.

StatusBarPanel.Icon Property

Gets or sets the icon to display within the status bar panel.

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

public Icon Icon { get; set; }

Property Value

Type: System.Drawing.Icon
An Icon that represents the icon to display in the panel.

You can use this property to display an icon that represents the state of your application or a process within your application. For example, you can display an icon in a StatusBarPanel to indicate whether a file save operation is in progress or complete.

NoteNote:

There is no way to independently position an icon within the StatusBarPanel. For example, you cannot position an icon to the left side of the StatusBarPanel while aligning the text on the right side using the Alignment property. The icon is always positioned to the left side of the panel's text regardless of how the text is aligned.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: