Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting focus to a text box

Status
Not open for further replies.

johnnyv

Programmer
Jul 13, 2001
216
0
0
CA
I want to set focus to a textbox when an option button is pressed
I am currently doing this in the option button click event

text1.setfocus


THIS DOESN'T WORK

how can I do this

 
It worked for me, but when the radio button was already selected and I clicked on it again, the click event didn't fire. If you want an to use event that will fire whenever the user clicks on the particular radio, ragardless of its current value, then you should use the MouseUp event.

Hope this helps!
Josh
 
Is the text1 textbox enabled? If it's disabled you'll get an error.

(You aren't using On Error Resume Next, are you? If so, bad bad bad!)

Chip H.
Error on line 9: Object of type SIGNATURE expected
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top