Public Shared Function TestForHit(ByVal pt As System.Drawing.Point,
ByVal rect As Rectangle) As Boolean
Dim gp As New Drawing2D.GraphicsPath()
Dim myMatrix As New Drawing2D.Matrix()
gp.AddRectangle(rect)
gp.Transform(myMatrix)
Return gp.IsVisible(pt)
End Function
Checking the locals window, thescreen.AllSreens shows two screens, both with
bounds of 500x400 (one offset by 500 i.e.- X=500)
Any ideas anyone?
This is a VB6 and earlier group(VB Classic). VB.Net and all dotnet groups
have either "dotnet" or "vsnet" in the group name. Please use the following
group instead:
news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb