Results 1 to 2 of 2

Thread: Easy question.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    18

    Question 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

  2. #2
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160
    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
  •  



Click Here to Expand Forum to Full Width