StatusBarPanel.Icon Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.


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.

.NET Framework
Available since 1.1
Return to top