Okay, IntersectRect isn't working... I fear I'm not smart enough to use it!!!

VB Code:
  1. Type RECT
  2.     LEFT As Long
  3.     RIGHT As Long
  4.     BOTTOM As Long
  5.     TOP As Long
  6. End Type
  7.  
  8. Declare Function IntersectRect Lib "user32" (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) As Long
  9.  
  10.     Dim temparray As RECT
  11.     Dim rect1 As RECT
  12.     Dim rect2 As RECT
  13.    
  14.     rect1.BOTTOM = 4
  15.     rect1.TOP = 1
  16.     rect1.LEFT = 1
  17.     rect1.RIGHT = 4
  18.    
  19.     rect2.BOTTOM = 6
  20.     rect2.TOP = 2
  21.     rect2.LEFT = 2
  22.     rect2.RIGHT = 6
  23.    
  24.     If IntersectRect(temparray, rect1, rect2) <> 0 Then
  25.         Call MsgBox("HIT HIT HIT")
  26.         Call MsgBox(temparray.TOP & vbTab & temparray.BOTTOM & vbCrLf & temparray.LEFT & vbTab & temparray.RIGHT)
  27.     End If

This is just an example but I still can't get it to work... Whats wrong with it? Could somebody fix it! THANKS!

NOMAD