Making A Gadget(Dancing Person)

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
Bogoh67
VIP - Site Partner
VIP - Site Partner
Posts: 656
Joined: Sun Apr 18, 2010 8:20 pm

Making A Gadget(Dancing Person)
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
You do not have the required permissions to view the files attached to this post.
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

Re: Making A Gadget(Dancing Person)
Danny
lol ^^, great
User avatar
NecroPhis
VIP - Donator
VIP - Donator
Posts: 345
Joined: Sun Aug 08, 2010 1:14 pm

hehe looks good cooll; ty :D
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Wont the Guy Be Partially not there since hes red?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Bogoh67
VIP - Site Partner
VIP - Site Partner
Posts: 656
Joined: Sun Apr 18, 2010 8:20 pm

Re: Making A Gadget(Dancing Person)
Bogoh67
when i tried it.....no
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

ok
i guess its for .pngs not .gif :P
that clears up why i thought it wouldnt work :P
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
6 posts Page 1 of 1
Return to “Tutorials”