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
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
and thats 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.
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 

ok
i guess its for .pngs not .gif :P
that clears up why i thought it wouldnt work :P
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
Copyright Information
Copyright © Codenstuff.com 2020 - 2023