Option Explicit Private Sub Form_Load() Picture1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight Picture1.FontName = "Courier new" Picture1.FontSize = 8 Picture1.ForeColor = vbRed Picture1.ScaleMode = vbPixels End Sub Private Sub Picture1_Click() Dim S As Single, j As Integer Dim h As Long, w As Long h = Picture1.Height / Screen.TwipsPerPixelY w = Picture1.Width / Screen.TwipsPerPixelX Picture1.Cls j = -1 For S = h To 0 Step -20 j = j + 1 Picture1.CurrentX = 0 Picture1.CurrentY = S - 20 Picture1.Print CStr(j) Next S j = 0 For S = 20 To w Step 20 j = j + 1 Picture1.CurrentX = S Picture1.CurrentY = h - 20 Picture1.Print CStr(j) Next S End Sub