Private Sub Form_Load()
Me.Move 1000, 500, 9000, 9000
On Error Resume Next
Dim i As Long
For i = 0 To 63
Load Picture1(i)
Picture1(i).Visible = True
Picture1(i).Move 800 + 800 * (i \ 8), 500 + 800 * (i Mod 8), 800, 800
Next
End Sub
DTcol = Int(Sqr(DTcounts))
If DTcounts Mod DTcol = DTcol Then
For intI = 0 To DTcol - 1 '列
For intJ = 0 To DTcol - 1 '行
DTDisplay1(intI + intJ * DTcol).top = intJ * 1500 + 600
DTDisplay1(intI + intJ * DTcol).left = intI * 1200 + 700
end if
dim mtop as integer,mleft as integer,i as integer,j as integer
mtop=0
for i=1 to 8
mleft=50
for j=1 to 8
k=(i-1)*8+j
load picturebox(k)
picturebox(k).visible=true
picturebox(k).top=mtop
picturebox(k).left=mleft
mleft=mleft+picturebox(0).width
next j
mtop=mtop+picturebox(0).height
next i
没测试过?