I have a few hexagon shaped regions on my form that lie next to each other. Similar to a honeycomb structure.
How do I detect using the mouse x and y what region I have clicked in. I will run trough a loop that create points for the 6 corners of the hexagon to give it its bounds.
It would be simple enough if it was a rectangle, but this is a little different. I saw on another post that you can use a Contains() method to see if it is in there.
But since I am here asking this question, it is obvious I cant find how to do it.
Any help would be great.
How do I detect using the mouse x and y what region I have clicked in. I will run trough a loop that create points for the 6 corners of the hexagon to give it its bounds.
It would be simple enough if it was a rectangle, but this is a little different. I saw on another post that you can use a Contains() method to see if it is in there.
But since I am here asking this question, it is obvious I cant find how to do it.
Any help would be great.