vb 图标拖动
PrivateSubForm_Load()Picture1.DragIcon=Picture1.PictureEndSubPrivateSubForm_DragDrop(...
Private Sub Form_Load()
Picture1.DragIcon = Picture1.Picture
End Sub
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Source.Move X, Y
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Drag 1
End Sub
Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Drag 2
End Sub
运行后调试“Picture1.DragIcon = Picture1.Picture”出错 不知道为什么? 展开
Picture1.DragIcon = Picture1.Picture
End Sub
Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
Source.Move X, Y
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Drag 1
End Sub
Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Drag 2
End Sub
运行后调试“Picture1.DragIcon = Picture1.Picture”出错 不知道为什么? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询