How to: Detect When the Mouse Pointer Is Over a ToolStripItem
Use the following procedure to detect when the mouse pointer is over a ToolStripItem.
To detect when the pointer is over a ToolStripItem
Use the Selected property for items in which CanSelect is
true
.This will prevent you from having to synchronize the MouseEnter and MouseLeave events.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET Desktop feedback