ashgopal2000
Member
- Joined
- Jun 24, 2005
- Messages
- 12
- Programming Experience
- 1-3
Hi guys,
Three is a requirement to select a particular button when the user presses the enter key in a textbox(s). For e.g., if a user presses 'Enter' button in Phone Field, Bill round or ClerkID textboxes, the cmdFind button should be automatically clicked, etc.
I try to do this by using the keydown event....
private sub txtClerkID_keydown(....)
if e.keycode = keys.enter
cmdfind_click(sender,eventargs)
end if
end sub
However, when the user presses the 'Enter' button, it does not enter into the above procedure at all! It directly clicks a button, whose tabindex value is the least!!!
Is there any way to work around the problem? The user needs to navigate with tab.
Thanks.
Three is a requirement to select a particular button when the user presses the enter key in a textbox(s). For e.g., if a user presses 'Enter' button in Phone Field, Bill round or ClerkID textboxes, the cmdFind button should be automatically clicked, etc.
I try to do this by using the keydown event....
private sub txtClerkID_keydown(....)
if e.keycode = keys.enter
cmdfind_click(sender,eventargs)
end if
end sub
However, when the user presses the 'Enter' button, it does not enter into the above procedure at all! It directly clicks a button, whose tabindex value is the least!!!
Is there any way to work around the problem? The user needs to navigate with tab.
Thanks.