Needs some help with hit testing
-
I am putting shapes in to a list array Then I use the code below to draw them on the forms background, I have this in the forms paint handler. foreach (Shape s in shapesArray) { s.Draw(g); } What I want to do is click on the form and a message box come up and saying true or false if the mouse point was in the shape. I have tried using the region command and isvisible but I can not get it to work how I want. Any help would be much appreciated.
-
I am putting shapes in to a list array Then I use the code below to draw them on the forms background, I have this in the forms paint handler. foreach (Shape s in shapesArray) { s.Draw(g); } What I want to do is click on the form and a message box come up and saying true or false if the mouse point was in the shape. I have tried using the region command and isvisible but I can not get it to work how I want. Any help would be much appreciated.