Results 1 to 2 of 2

Thread: Cursor auto position in a text box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    75

    Cursor auto position in a text box

    Hey Guys,

    How do I get my cusor to automaticaly go to a specific textbox when I load a form?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Cursor auto position in a text box

    You need to set the focus to that txtbox as part of the Initialize procedure for the form.
    VB Code:
    1. Private Sub UserForm_Initialize()
    2.     Me.TextBox2.SetFocus
    3. End Sub
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

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