Form1.frm

 VERSION 5.00
Begin VB.Form Form1
   Caption         =   "Form1"
   ClientHeight    =   3135
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3135
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox Picture1
      Height          =   3075
      Left            =   0
      ScaleHeight     =   3015
      ScaleWidth      =   3795
      TabIndex        =   1
      Top             =   0
      Width           =   3855
      Begin VB.TextBox Text2
         Height          =   855
         Left            =   180
         TabIndex        =   5
         Text            =   "Text2"
         Top             =   2100
         Width           =   3435
      End
      Begin VB.ListBox List1
         Height          =   1425
         Left            =   2100
         TabIndex        =   4
         Top             =   180
         Width           =   1515
      End
      Begin VB.CommandButton Command2
         Caption         =   "Command2"
         Height          =   375
         Left            =   1020
         TabIndex        =   3
         Top             =   1680
         Width           =   1755
      End
      Begin VB.TextBox Text1
         Height          =   1395
         Left            =   180
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   180
         Width           =   1335
      End
   End
   Begin VB.CommandButton Command1
      Caption         =   "Command1"
      Height          =   375
      Left            =   1800
      TabIndex        =   0
      Top             =   2760
      Width           =   2895
   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 Sub Form_Load()
   Caption = "Scroll demo"
   SetScrollBar Me.hWnd, vbBoth
   SetScrollBar Picture1.hWnd, vbBoth, True
   Picture1.Move 0, 0, Width / 2, Height / 2
End Sub

Private Sub Form_Resize()
   AdjustScrollInfo Me.hWnd
End Sub

Private Sub Picture1_Resize()
   AdjustScrollInfo Picture1.hWnd
End Sub

Project Homepage: