Descargar visual basic 2008 express! by team xv-t

Visual Basic 2008 express es un lenguaje de programacion, se puede aprender sin muchos conocimientos.
Download:
http://www.microsoft.com/express/vb/Default.aspx










SKYN MOVIBLE

Public Class Form1
Dim newpoint As New System.Drawing.Point
Dim x, y As Integer
Private Sub PictureBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
x = Control.MousePosition.X - Me.Location.X
y = Control.MousePosition.Y - Me.Location.Y
End Sub
Private Sub PictureBox1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If e.Button = MouseButtons.Left Then
newpoint = Control.MousePosition
newpoint.X -= (x)
newpoint.Y -= (y)
Me.Location = newpoint
End If
End Sub

0 comentarios: