nitinpranjale wrote:I tried this
Which I notice does not come from The Code Project site.
nitinpranjale wrote:but does not run correct when coordinates are below the polygon.
Which could mean anything. Try asking for assistance from the person who provided the code, they are much more likely to understand how it works.