domingo, 18 de marzo de 2012

Visual studio 2010 " DAR MOVIMIENTO MANUAL A UNA IMAGEN"

Para ello utilizaremos
4 BUTTON que daran la direccion deseada de la imagen
1 PICTUREBOX




Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
PictureBox1.Top = PictureBox1.Top - 30
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
PictureBox1.Top = PictureBox1.Top + 30
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
PictureBox1.Left = PictureBox1.Left + 30
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
PictureBox1.Left = PictureBox1.Left - 30
End Sub
End Class

No hay comentarios:

Publicar un comentario