VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   6690
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6795
   LinkTopic       =   "Form1"
   ScaleHeight     =   6690
   ScaleWidth      =   6795
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox Picture2 
      Height          =   3375
      Left            =   0
      ScaleHeight     =   3315
      ScaleWidth      =   3435
      TabIndex        =   2
      Top             =   0
      Width           =   3495
      Begin VB.PictureBox Picture1 
         AutoSize        =   -1  'True
         Height          =   3255
         Left            =   0
         ScaleHeight     =   213
         ScaleMode       =   3  'Pixel
         ScaleWidth      =   305
         TabIndex        =   3
         Top             =   0
         Width           =   4635
      End
   End
   Begin VB.HScrollBar HScroll1 
      Height          =   255
      LargeChange     =   25
      Left            =   0
      SmallChange     =   10
      TabIndex        =   1
      Top             =   3360
      Width           =   3495
   End
   Begin VB.VScrollBar VScroll1 
      Height          =   3375
      LargeChange     =   25
      Left            =   3480
      SmallChange     =   10
      TabIndex        =   0
      Top             =   0
      Width           =   255
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Type RECT
        Left As Long
        Top As Long
        Right As Long
        Bottom As Long
End Type
Private Declare Function PtInRect Lib "user32" (lpRect As RECT, ByVal x As Long, ByVal y As Long) As Long
Private rectSpot As RECT

Private Sub Form_Load()

    HScroll1.Max = Picture1.Width
    VScroll1.Max = Picture1.Height
    
    rectSpot.Left = 130
    rectSpot.Top = 70
    rectSpot.Right = 210
    rectSpot.Bottom = 95
    
End Sub

Private Sub HScroll1_Change()

    Picture1.Left = -HScroll1.Value

End Sub

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)

    If PtInRect(rectSpot, CLng(x), CLng(y)) > 0 Then
        MsgBox "Spot clicked"
    End If
    
End Sub

Private Sub VScroll1_Change()

    Picture1.Top = -VScroll1.Value

End Sub

