3个回答
展开全部
窗体添加一个影像框(Image)或者图片框(PictureBox),并给它加载图片,然后写下述代码:
方法一:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Left = X
Image1.Top = Y
End Sub
方法二:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Move X,Y
End Sub
简单吧?^_^
方法一:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Left = X
Image1.Top = Y
End Sub
方法二:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Move X,Y
End Sub
简单吧?^_^
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Move X, Y
End Sub
Picture1.Move X, Y
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
前两位的回答都不错,我就不多说了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询