SimpleShape.BackgroundImageChanged Event


Occurs when the BackgroundImage property of a shape is changed.

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

public event EventHandler BackgroundImageChanged

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

For more information about how to handle events, see Handling and Raising Events.

The following example shows how to respond to the BackgroundImageChanged event in an event handler. This example requires that you have a RectangleShape control named RectangleShape1 and a Label control named Label1 on a form.

private void rectangleShape1_BackgroundImageChanged(object sender, System.EventArgs e)
    // Display a message in the Label.
    label1.Text = "The picture has changed.";
Return to top