interface question
quick question
textbox has the focus your done typing you want to hit enter to have the search button or enter buttons click event to fire but it doesn't. How can i incorparate that feature? obviously the tabbing to the button and hitting enter works but with out tabbing is something i would like to have
[325 byte] By [
jim12345] at [2007-11-11 8:34:25]

# 4 Re: interface question
However, more broadly, if you check the Keypress event and intercept KeyAscii=vbKeyEnter, then you can call another routine (e.g. Command1_Click), or you can use the SendKeys statement (e.g. SendKeys "{TAB}{ENTER}" - will pass control to the next 'position' according to your Tab sequence, and 'press' Enter; or, if you use shortcut keys for your command buttons (&Ok for the caption) you can SendKeys "%o" to send Alt-C ).
gupex at 2007-11-11 17:28:28 >

# 5 Re: interface question
Yeah - it's very good method !
i read about it one time before in a book
and it's more info about that :-
----------
1- Sending Ctrl + Any Key :-
e.g. "Ctrl + ESC" , Ctrl -->> ^
SendKey("^{ESC}")
2- Sending Shift + Any Key :-
e.g. "Shift + a" , Shift -->> +
SendKey("+{F10}")
3- Sending Alt + Any Key :-
e.g. "Alt + TAB" , Alt -->> %
SendKey("%{TAB}") ' This Would show you the currently opened windows for only a moment , you can use any looping method to make it still more time
you can also use this formula :
{TAB 3} for pressing the TAB Key 3 times
hope this info help you .. if you have more info about this exciting subject - please send ...
yours ..
AHHB at 2007-11-11 17:29:27 >
