Skip to main content

I have a form that contains a testBox that I use to enter data. When I press "tab" or click the mouse on another control,  the data is processed. When I press "enter" nothing happens. How can I have the enter key do what the tab key does? I use an event handler "Leave_Focus" to process the data.

I have a form that contains a testBox that I use to enter data. When I press "tab" or click the mouse on another control,  the data is processed. When I press "enter" nothing happens. How can I have the enter key do what the tab key does? I use an event handler "Leave_Focus" to process the data.

Take a look at the previous post that covers this topic at community.microfocus.com/.../8949.aspx

Be aware that if you place a control like a datagrid on the form that this becomes a little more complicated as these controls havdle their own key processing.

Thanks.


I have a form that contains a testBox that I use to enter data. When I press "tab" or click the mouse on another control,  the data is processed. When I press "enter" nothing happens. How can I have the enter key do what the tab key does? I use an event handler "Leave_Focus" to process the data.

Hi Chris

    That was great. Worked like a champ. Just what I wanted. Thanks Much!


I have a form that contains a testBox that I use to enter data. When I press "tab" or click the mouse on another control,  the data is processed. When I press "enter" nothing happens. How can I have the enter key do what the tab key does? I use an event handler "Leave_Focus" to process the data.

Hi Chris

    That was great. Worked like a champ. Just what I wanted. Thanks Much!