Hi
I have the following code (in VB.NET) but I can not get this to return true.
Declare Function PtInRect Lib "user32" (ByRef lpRect As Rectangle, ByVal pt
As Point) As Integer
-----------------------------------------------------
Dim tmpPnt As New Point(50, 50)
Dim tmpRect As New Rectangle(40, 40, 20, 20)
If PtInRect(tmpRect, tmpPnt) Then
Debug.WriteLine("TRUE")
Else
Debug.WriteLine("FALSE")
End If
Could anyone suggest where I am going wrong?
Regards, Carl Gilbert