StatusBarPanel.Parent Property


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

Gets the StatusBar control that hosts the status bar panel.

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

public StatusBar Parent { get; }

Property Value

Type: System.Windows.Forms.StatusBar

The StatusBar that contains the panel.

You can use this property to determine the StatusBar control that a StatusBarPanel is contained within. StatusBarPanel objects are added to a StatusBar control by calling the Add method of the StatusBar.StatusBarPanelCollection class. The StatusBar.StatusBarPanelCollection of a StatusBar control is accessible through the Panels property.

.NET Framework
Available since 1.1
Return to top