下面是源代码,请帮我看看哪里有问题
Option Explicit
Private Sub tcpic(k As Object, p As PictureBox)
Dim i As Integer, j As Integer
For i = 0 To k.Height Step p.Height
For j = 0 To k.Width Step p.Width
k.PaintPicture p.Picture, j, i, p.ScaleWidth, p.ScaleHeight, 0, 0, p.ScaleWidth, p.ScaleHeight
Next j
Next i
End Sub
Private Sub Form_Load()
Call tcpic(Form1, Picture1)
Picture1.Visible = False
End Sub