I'm working on a program that when you click on button1, it moves the mouse to label1 in the form. In java there is a syntax that delays which it looks like this:
My question is, what would I use in VB to do the same thing so I could simply accomplish my task like this:
Any help would be appreciated <3!
Code:
thread.sleep(600);
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Cursor.Position = Me.PointToScreen(New Point(Label1.Left, Label1.Top))
thread.sleep(600)
mouse.Click(left) //DONT KNOW WHAT THE CODE IS FOR VB
thread.sleep(600)
End Sub
Private Sub Form1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseEnter
Cursor.Clip = Me.Bounds
End Sub
End Class