set cursor default in first txtBox

wdw

Freshman
Joined
Dec 11, 2002
Messages
37
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
 
Back
Top