Page 1 of 1

Making A Gadget(Dancing Person)

Posted: Sun Sep 05, 2010 4:42 pm
by Bogoh67
First mak a new project then make it
transparency color=red
forecolor=red
backcolor=red

then add a picture box with a gif


make the picturebox sizemode autosize


then right click the form and click veiw code

delete all code found and copy and paste this

Code: Select all
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)
        X = Control.MousePosition.X - Me.Location.X
        Y = Control.MousePosition.Y - Me.Location.Y
    End Sub

    Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)
        If e.Button = MouseButtons.Left Then
            NewPoint = Control.MousePosition
            NewPoint.X -= (X)
            NewPoint.Y -= (Y)
            Me.Location = NewPoint
        End If
    End Sub
  End Class

and thats it

Re: Making A Gadget(Dancing Person)

Posted: Sun Oct 31, 2010 9:04 am
by Danny
lol ^^, great

Re: Making A Gadget(Dancing Person)

Posted: Sun Oct 31, 2010 3:24 pm
by NecroPhis
hehe looks good cooll; ty :D

Re: Making A Gadget(Dancing Person)

Posted: Sun Oct 31, 2010 3:27 pm
by zachman61
Wont the Guy Be Partially not there since hes red?

Re: Making A Gadget(Dancing Person)

Posted: Sun Oct 31, 2010 4:45 pm
by Bogoh67
when i tried it.....no

Re: Making A Gadget(Dancing Person)

Posted: Sun Oct 31, 2010 5:11 pm
by zachman61
ok
i guess its for .pngs not .gif :P
that clears up why i thought it wouldnt work :P