Control.CursorChanged Event

 

Occurs when the value of the Cursor property changes.

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

member CursorChanged : IEvent<EventHandler,
    EventArgs>

This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.

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

The following code example demonstrates changing the mouse cursor using the Control.Cursor property, the Cursor class, and the Cursors class. The example creates a form that contains a ComboBox control, a Panel control, and a ListView control. TheComboBox contains all cursors provided by the Cursors class. When the user selects a mouse cursor in the ComboBox, the Control.Cursor property is set to the selected cursor, which updates the cursor for the Panel. The ListView is updated every time the Control.CursorChanged event occurs.

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

.NET Framework
Available since 1.1
Return to top
Show: