Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single) i = Source.Index Image1(i).Move X, Y End Sub Private Sub Form_Load() Form1.AutoRedraw = True End SubPrivate Sub Image1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) Image1(Index).Drag End Sub
1,托动一个image到form里面
2 copy,paste这个,在提示的时候选择建立数组控件
操作的时候名字不是不能带括号么,怎么解决啊
i = Source.Index
Image1(i).Move X, Y
End Sub
Private Sub Form_Load()
Form1.AutoRedraw = True
End SubPrivate Sub Image1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1(Index).Drag
End Sub