Leer en inglés

Compartir a través de


Control.Move Evento

Definición

Se produce cuando se mueve el control.

C#
public event EventHandler Move;
C#
public event EventHandler? Move;

Tipo de evento

Ejemplos

En el ejemplo de código siguiente se usa el Move evento para mostrar la ubicación del formulario en coordenadas de pantalla en la barra de subtítulo del formulario.

C#
// The following example displays the location of the form in screen coordinates
// on the caption bar of the form.
private void Form1_Move(object sender, System.EventArgs e)
{
    this.Text = "Form screen position = " + this.Location.ToString();
}

Comentarios

Para obtener más información sobre el manejo de eventos, consulte controlar y provocar eventos.

Se aplica a

Producto Versiones
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Consulte también