-
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
-
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
-
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.
-
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.