AddHandler p.MouseClick Confusing Problem

  • Thread starter Thread starter JimBob
  • Start date Start date
J

JimBob

Ok so i added this line of code to a dynamic PictureBox. (i dim it p)
AddHandler p.MouseClick, AddressOf Hand.Canvas_Click
what it would do is change the pic on the picbox but every time you
click the picturebox it raises the event several times?
Public Sub Canvas_Click(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) is the sub that it raises
i must be missin something. any ideas?
 
Back
Top