Results 1 to 3 of 3

Thread: Move cursor from 1 textbox to another using ALT+key? [Resolved]

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question Move cursor from 1 textbox to another using ALT+key? [Resolved]

    I have 3 textbox in a form like this:
    &Name: textboxName
    &Age: textboxAge
    &Gender: textboxGender

    Instead of using Tab, I want to use ALT + N, ALT + A, ALT + G to move the cursor from 1 textbox to another textbox.
    how can I do this?

    please guide, thank you.
    Last edited by albertlse; Aug 21st, 2003 at 08:24 PM.

  2. #2
    Lively Member Tygur's Avatar
    Join Date
    Jul 2002
    Posts
    108
    Change the tab order so that the label for each textbox is right before its respective textbox. For example, if txtName's TabIndex is 5, lblName's TabIndex should be 4. I'm sure you already know how to use a & in a Label's text so the correct letter is underlined. After changing the tab order, all you have to do is put the & signs in the right places in the labels, and when you press Alt+Whatever, the appropriate textbox will get focus, because the label can't.

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Smile

    It's working fine now. Thank you Tygur
    Last edited by albertlse; Jun 15th, 2003 at 01:39 AM.

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