I want to know how I set the cursor default in the first textbox on my windows form.
I've tried the code below but that didn't worked.
Can someone give a solution for this problem!!
thanks
Private Sub PageName_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
Me.TextBox1.Focus()
End Sub
Private Sub PageName_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Focus()
End Sub
I've tried the code below but that didn't worked.
Can someone give a solution for this problem!!
thanks
Private Sub PageName_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
Me.TextBox1.Focus()
End Sub
Private Sub PageName_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Focus()
End Sub