Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft