Results 1 to 4 of 4

Thread: linking labels and textboxes..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    168
    Hello.. in the caption of the label you can put a & in front of a letter to underline it.. but if you press alt and that character it does not do anything, how do you make it jump to the textbox that is next to that label? or any control that is next to that label?

    Thanks,
    Thai

  2. #2
    Guest
    Just make sure that the control you want to give focus to, has a tabstop one bigger than the label.
    This will make the control receive the focus when you press the alt-letter combination.
    This will work for multiple labels and controls.

    Imar


  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    I think that Imar is referring to the Tab Index. Set the Tab Index of the Label and then make sure that the Textbox you want to have get the focus has the next number for it's Tab Index.

    Example:
    To have a Textbox get the focus if you press the keys (ALT+N) for a label with a caption &Name...
    If the Tab Index for the label is 3, set the Tab Index for the Textbox to 4.
    JC

  4. #4
    Guest
    I'm sorry, jcouture100 is right.
    Apparently I didn't pay enough attention to what I was writing. Bit sleepy, I guess.
    It has to be the TabIndex.

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