I have a fairly big VB
6.0 application with a large number of forms. Each of them contains a number of controls also. The tab indices of each control in each form is correctly set so that users can move from control to control using tab key.
However, client wants return (enter) key based navigation. I.e when they press enter key while on a textbox with tab index 16, the focus should move to control with tab index 17 if it is enabled. If control with tab index 17 is not enabled, it should focus to control with tab index 18 and so on.
I can write a piece of code in the key-press event of all controls. But I would like to know whether there are any alternative smarter methods for achieving this ? (Writing such a piece of code in each control key press event will take long time even if I create a public subroutine in a module and use it).