菜鸟第三问,关于picturebox控件的鼠标位置
请问怎样才能把鼠标位置移动到已知的坐标点上
比如就想移动到(100,100)这个点
菜鸟初学
大家多多帮忙
谢谢先
问题点数:20、回复次数:1Top
1 楼AprilSong(X)回复于 2004-12-02 00:33:22 得分 20
坐标参数是整个屏幕内的坐标
移鼠标到窗体左上角就是这样:
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Private Sub Form_Load()
SetCursorPos Me.Left / Screen.TwipsPerPixelX, Me.Top / Screen.TwipsPerPixelY
End SubTop




