c# - Set cursor position to next texbox in a series -
visual studio 2015, c#,
in app gets information series of textboxes event-handler on each textbox, how keep cursor going first textbox after each textbox entry?
in other words, if customer likes use keyboard tab through data entry fields while entering data on web page on-screen information being updated event handlers on each textbox, how cursor come next textbox or other control after 1 entered?
currently, if make entry in 2nd textbox in series, upon autopostback, cursor goes first textbox. user must tab 2 times third textbox. after entering data there, user must tab 3 times fourth textbox.
how can cursor move next input box without user having tab or use mouse?
(my search "set cursor position" show results graphics applications.)
the straightforward way ask set focus subsequent control in textchanged event each textbox. thus
void textbox1_ontextchanged(eventargs e) { textbox2.focus(); } void textbox2_ontextchanged(eventargs e) { textbox3.focus(); } //etc.
however isn't @ way it. turn off autopostback , find way replace ajax.
Comments
Post a Comment