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)

Syntax

[BrowsableAttribute(true)]
public event EventHandler BackgroundImageChanged
public:
[BrowsableAttribute(true)]
event EventHandler^ BackgroundImageChanged {
    void add(EventHandler^ value);
    void remove(EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member BackgroundImageChanged : IEvent<EventHandler,
    EventArgs>
<BrowsableAttribute(True)>
Public Event BackgroundImageChanged As EventHandler

Remarks

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.

Examples

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.";
}
Private Sub RectangleShape1_BackgroundImageChanged(
  ) Handles RectangleShape1.BackgroundImageChanged

    ' Display a message in the Label.
    Label1.Text = "The picture has changed."
End Sub

See Also

SimpleShape Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the Line and Shape Controls (Visual Studio)
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)

Return to top