I have a form, with a text box a cancel and a save button.
When i enter text in the box and hit the enter key, the window closes. My guess is that it is acting like the cancel button. Therefore within the properties of the cancel button, I changed the cancel property to False. Originally set to True. This does not have any effect clicking the enter key in the text box still closes the form.
The code for the Cancel button is:mbUserCancelled = True
The code for the Save button is: mbUserCancelled = False
If these are commented out and the cancel button, cancel property is set to False, the enter key now functions as a save key.
So now the current scenrio is load the form, enter text in text box, click enter to go to the next line and instead the text gets saved.
When i enter text in the box and hit the enter key, the window closes. My guess is that it is acting like the cancel button. Therefore within the properties of the cancel button, I changed the cancel property to False. Originally set to True. This does not have any effect clicking the enter key in the text box still closes the form.
The code for the Cancel button is:mbUserCancelled = True
The code for the Save button is: mbUserCancelled = False
If these are commented out and the cancel button, cancel property is set to False, the enter key now functions as a save key.
So now the current scenrio is load the form, enter text in text box, click enter to go to the next line and instead the text gets saved.