Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

VS 2010 Make Cursor Click & Timers? Help!

$
0
0
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:
Code:

thread.sleep(600);
My question is, what would I use in VB to do the same thing so I could simply accomplish my task like this:
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

Any help would be appreciated <3!

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>