rufus Posted July 16, 2003 Posted July 16, 2003 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. Quote Rufus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.