Export (0) Print
Expand All

Shape.CursorChanged Event

Occurs when the value of the Cursor property changes.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

public event EventHandler CursorChanged

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

For more information about how to handle events, see Consuming Events.

The following example displays a message in the status bar when a change occurs to the Cursor property. This example requires that you have a RectangleShape control named RectangleShape1 and a StatusStrip control named StatusStrip1 on a form. The StatusStrip must have a ToolStripStatusLabel named ToolStripStatusLabel1.

private void rectangleShape1_CursorChanged(object sender, System.EventArgs e)
    toolStripStatusLabel1.Text = "This shape is currently disabled.";

© 2014 Microsoft