I can't find the answer for this ANYwhere.
I have created an element using the code below.
I would like to add events to PictureBox2, which was the one I created programmatically above. I would like to add like mousedown and mouseup events to it. Anybody know the answer off the top of their head?
Thanks,
Brian
PS Heres the code I used to create the element.
Private Sub Button1_Click Dim PictureBox As New PictureBox PictureBox.Name = "PictureBox2" PictureBox.Location = New Point(Cursor.Position.X - 300, Cursor.Position.Y - 210) Me.Controls.Add(PictureBox) PictureBox.ImageLocation = "C:\image.jpg" End Sub

New Topic/Question
Reply



MultiQuote






|