-
ok.... do the following :
Add 2 or more textboxes to a new project
add 2 or more Labels to you're project, turn mnenonic to true
now set label1s caption to "just &Testing"
labels2s caption to "textbox &2"
....
paste the folowing code into Label1_Click :
private sub label1_click()
text1.setfocus
text1.selstart = 0
text1.sellength = len(text1)
end sub
.. this to label 2 .....
private sub label2_click()
text2.setfocus
text2.selstart = 0
text2.sellength = len(text2)
end sub
now run the project....
mhh.. if you now press ALT + T , the cursor should jump to TEXTBOX1 and select the complete text, if u press ALT+2, the same should happen on TEXTBOX2
on my (and on a lot of friends pc's) it simple dont work. the damn cursor jumps EVERYTIME i press ALT+2 to TEXTBOX1 and select nothing. *grr*
i'm using MS VB 5.0 + SP 3. if someone knows a solution or can point my little brain to the error.... mail me please.
taLON
-
check the tabindex prop's. also, i dont think that this is going to trigger the click event for the labels. Use the got focus of the textbox to select the text.