Compartir a través de


SimpleShape.BackgroundImageChanged (Evento)

Se produce cuando la propiedad de BackgroundImage de una forma cambia.

Espacio de nombres:  Microsoft.VisualBasic.PowerPacks
Ensamblado:  Microsoft.VisualBasic.PowerPacks.Vs (en Microsoft.VisualBasic.PowerPacks.Vs.dll)

Sintaxis

'Declaración
<BrowsableAttribute(True)> _
Public Event BackgroundImageChanged As EventHandler
[BrowsableAttribute(true)]
public event EventHandler BackgroundImageChanged
[BrowsableAttribute(true)]
public:
 event EventHandler^ BackgroundImageChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member BackgroundImageChanged : IEvent<EventHandler,
    EventArgs>
JScript no admite eventos.

Comentarios

Este evento se provoca si la propiedad BackgroundImage se modifica mediante programación o interacción del usuario.

Para obtener más información acerca de cómo controlar eventos, vea Utilizar eventos.

Ejemplos

En el ejemplo siguiente se muestra cómo responder al evento BackgroundImageChanged en un controlador de eventos.Este ejemplo requiere tener un control de RectangleShape denominado RectangleShape1 y un control label denominado Label1 en un formulario.

Private Sub RectangleShape1_BackgroundImageChanged(
  ) Handles RectangleShape1.BackgroundImageChanged

    ' Display a message in the Label.
    Label1.Text = "The picture has changed."
End Sub
private void rectangleShape1_BackgroundImageChanged(object sender, System.EventArgs e)
{
    // Display a message in the Label.
    label1.Text = "The picture has changed.";
}

Seguridad de .NET Framework

Vea también

Referencia

SimpleShape Clase

Microsoft.VisualBasic.PowerPacks (Espacio de nombres)

Otros recursos

Introducción a los controles de líneas y formas (Visual Studio)

Cómo: Dibujar líneas con el control LineShape (Visual Studio)

Cómo: Dibujar formas con los controles OvalShape y RectangleShape (Visual Studio)