Topic: press enter and focus to next text field ?

i need that, when i press enter on first text field, the next text field autofocus, just like hitting tab, i wanna replace tab with enter , sorry for bad english

2 (edited by k245 2019-05-13 07:53:26)

Re: press enter and focus to next text field ?

You must write script for all text fields like this:

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=5456&download=0

Post's attachments

Attachment icon next.png 19.68 kb, 182 downloads since 2019-05-13 

Визуальное программирование: блог и телеграм-канал.

Re: press enter and focus to next text field ?

Hi All,
You could also try 'setfocusnextcontrol'.  Please see attached example.
Be careful if you have buttons on the form - I'd set their 'default' and 'tabstop' properties to 'false' otherwise 'enter' will be interpreted as a 'click'.
Regards,
Derek.

Post's attachments

Attachment icon enterkey.zip 335.8 kb, 275 downloads since 2019-05-13 

Re: press enter and focus to next text field ?

thanks derek, its help me really, you are so pro smile