rufus
Active member
I want to do something, like I have a image, displayed in picturebox, If the click mouse on the forum, the image should move to that place where I clicked the mouse.
I have written the following code.
but it is not displaying.
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
Dim pic As New System.Windows.Forms.PictureBox()
Dim resources As System.Resources.ResourceManager = new System.Resources.ResourceManager(GetType(Form1))
pic.Location = New System.Drawing.Point(e.X, e.Y)
pic.Size = New System.Drawing.Size(104, 80)
pic.Image = CType(resources.GetObject("j:\shooter.jpg"),_ System.Drawing.Bitmap)
pic.Visible = True
End Sub
can any one help.
Or is there anyother way to do this.
I have written the following code.
but it is not displaying.
Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
Dim pic As New System.Windows.Forms.PictureBox()
Dim resources As System.Resources.ResourceManager = new System.Resources.ResourceManager(GetType(Form1))
pic.Location = New System.Drawing.Point(e.X, e.Y)
pic.Size = New System.Drawing.Size(104, 80)
pic.Image = CType(resources.GetObject("j:\shooter.jpg"),_ System.Drawing.Bitmap)
pic.Visible = True
End Sub
can any one help.
Or is there anyother way to do this.