Live Chat Icon For mobile
Live Chat Icon

WinForms FAQ - Hit Testing

Find answers for the most frequently asked questions
Expand All Collapse All
Bool HitTest(PointF[] polygonCorners, PointF mousePosition)
	GraphicsPath path = new GraphicsPath();
	Region region = new Region(path);

// Hittest the region to verify if the point is in the rect
		return true;
		return false;

Share with

Share on twitter
Share on facebook
Share on linkedin

Couldn't find the FAQs you're looking for?

Please submit your question and answer.