Public Function Moves2(ByVal a1 As Label) As String
If OKmove = True Then
OKmove = False
a1.MousePointer = 99 '用户鼠标类型
a1.MouseIcon = LoadPicture(App.path & "\ico\hand.cur") '读取鼠标的图标文件
a1.Move a1.Left + X - LastX - a1.Width / 2, a1.Top + Y - LastY - a1.Height / 2
DoEvents
OKmove = True
End If
End Function引用:
Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Moves2 (Label2)
End Sub错误提示说类型不对,应该怎么做?