ToolStripItem.CommandChanged Event

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

Occurs when the assigned ICommand of the Command property has changed.

C#
public event EventHandler? CommandChanged;
C#
[System.Runtime.Versioning.RequiresPreviewFeatures]
public event EventHandler CommandChanged;

Event Type

Attributes

Applies to

Product Versions
Windows Desktop 7, 8, 9, 10