|
-
May 7th, 2002, 07:24 PM
#1
Thread Starter
Junior Member
Easy question.
Hi,
This one should be easy for you guys but something I would never thought of, and that's why I don't know how to do it.
I have a form, with 10 input textbox field, from top to bottom. TabIndex from 1 - 10 from top to bottom as well.
And now, I want it to "focus" into textbox number 5 everytime I load the form. I know there is something to do with the keyword focus, but just don't know how to do it.
Can any one give me a hand?
Thanks in advance for help
Andy
-
May 9th, 2002, 12:28 PM
#2
Addicted Member
I don't know if this is the best way to do it, but I got this to work:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Show()
TextBox2.Focus()
End Sub
-Daryl
"Two More Rolls of Duct tape, and the world is mine!"
VB.NET Guru
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|