StatusBar.PanelClick Event

 
System_CAPS_noteNote

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

Occurs when a StatusBarPanel object on a StatusBar control is clicked.

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

member PanelClick : IEvent<StatusBarPanelClickEventHandler,
    StatusBarPanelClickEventArgs>

You can use this event to perform tasks when a panel within a StatusBar control is clicked. The data provided to the event through the StatusBarPanelClickEventArgs passed as a parameter to the event handler enables you to determine the StatusBarPanel that was clicked by the user in order to perform tasks on the selected panel.

For more information about handling events, see Handling and Raising Events.

The following code example demonstrates how to use the SizingGrip, StatusBarPanel.Alignment, StatusBarPanel.Width, StatusBarPanel.AutoSize, and StatusBarPanel.BorderStyle members and how to handle the PanelClick event.

To run the example, paste the following code in a form. Call the InitializeStatusBarPanels method in the form's constructor or Load method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: