AddHandler p.MouseClick Confusing Problem

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top