private sub command1_mousedown(button as integr,shift as integer,x as integer,y as integer)'''如果在COMMAND1上按下鼠标按键 if button=1 then''''如果是鼠标左键---则发生 file1.listindex=file1.listindex+1''文件列表框的LISTINDEX你应该知道 ''''了吧 end if end sub
private sub .......(button as integr,shift as integer,x as integer,y as integer)'''如果在........上按下鼠标按键 if button=1 确发timer控件 end if end sub Private Sub ......(Button As Integer, Shift As Integer, X As Single, Y As Single) if button=1 停止timer控件运行 end if End Sub
Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Recordset.movenext
End Sub
用MousDown事件控制开始,
用MousUp事件控制结束
在Timer中判断全局变量,以决定是否继续移动。
if button=1 then''''如果是鼠标左键---则发生
file1.listindex=file1.listindex+1''文件列表框的LISTINDEX你应该知道
''''了吧
end if
end sub
if button=1
确发timer控件
end if
end sub
Private Sub ......(Button As Integer, Shift As Integer, X As Single, Y As Single)
if button=1
停止timer控件运行
end if
End Sub
在timer里面写你要移动的记录代码