D
Dan Williams
Is there a trick to allowing the user to type something in a text box,
and then press the Enter key to start an Event process?
If I use Sub textbox_Enter(), it works, but then just clicking in the
textbox executes that code, too (for some reason), when I don't want
it to.
I've heard that you should use _ AfterUpdate() instead, but then Enter
doesn't work if the user leaves the default text in the box.
I guess I could live with that, but another problem with the After
Update Event is that if you come back from choosing the text from a
dialog box (Open File), it executes the code without letting you look
at the text to confirm, before pressing Enter.
There must be some reasonable approach that everyone uses...?
Dan Williams
danwPlanet
P.S. I do also have a "Go" command button, and if the user presses
Enter twice, the focus goes there and it executes, but it would be
nice to let the user just press Enter once, which is more intuitive.
and then press the Enter key to start an Event process?
If I use Sub textbox_Enter(), it works, but then just clicking in the
textbox executes that code, too (for some reason), when I don't want
it to.
I've heard that you should use _ AfterUpdate() instead, but then Enter
doesn't work if the user leaves the default text in the box.
I guess I could live with that, but another problem with the After
Update Event is that if you come back from choosing the text from a
dialog box (Open File), it executes the code without letting you look
at the text to confirm, before pressing Enter.
There must be some reasonable approach that everyone uses...?
Dan Williams
danwPlanet
P.S. I do also have a "Go" command button, and if the user presses
Enter twice, the focus goes there and it executes, but it would be
nice to let the user just press Enter once, which is more intuitive.