I am sure this is a simple problem to resolve. Unfortunately the resolve didn't come to me. How can I resolve this so instead of the form closing it will advance to the next data entry field.
thank you,
John
i press enter on my forms and they close
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- jsira2003@yahoo.com
- Posts: 117
- Last visit: Tue Jul 11, 2023 6:18 am
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: i press enter on my forms and they close
https://www.sapien.com/blog/2015/12/23/how-i-learned-to-love-dialogresult/
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- jsira2003@yahoo.com
- Posts: 117
- Last visit: Tue Jul 11, 2023 6:18 am
Re: i press enter on my forms and they close
I looked for the dialogresult to set it to none. But it seems this assumes you have a button to click on otherwise you do not have a dialogresult to set. My form just has a red X in the upper right. I want the user to move through the fields and when they are done press the red x to exit. I do not want a return pressed key to exit the app.
I hope I have explained this well.
John
I hope I have explained this well.
John
Re: i press enter on my forms and they close
You created a dialog form and deleted the "Ok" button but the form is still terminating. Somewhere in your form you are processing the return key and exiting. Perhaps the OK button is hiding somewhere. Check the controls list to see if it is still on the form but hidden.