Discussion:
Set Focus
(too old to reply)
Eric
2003-10-03 19:54:01 UTC
Permalink
I have a command button called Exit and I want to set the focus to this. I
have read in books how to do this but I have never been successful. Can
someone tell me how to do it.

Thank you
Eric
2003-10-03 20:13:30 UTC
Permalink
Whatever event you want to trigger this with (another command button,
form_load, timer, etc.)
add this line of code to it to set the focus.

Exit.SetFocus

just like that...

Dr Hangman
Post by Eric
I have a command button called Exit and I want to set the focus to this.
I
Post by Eric
have read in books how to do this but I have never been successful. Can
someone tell me how to do it.
Thank you
Eric
Continue reading on narkive:
Loading...