J
Jose Egea
Hello:
I'm trying to execute a function when the user press Enter key in a TextBox.
But something is happening in my form because after pressing a button, when
I press the Enter key in the TextBox, the application executes the click
event of the last button selected instead of the keypress event of the
TextBox. Any key event happen in my form, even the keypreview event is
ignored. The propertie AcceptsReturn is set to false and AcceptButton to
none.
I can't understand the reason.
Thanks in advance for your help
Best regards
I'm trying to execute a function when the user press Enter key in a TextBox.
But something is happening in my form because after pressing a button, when
I press the Enter key in the TextBox, the application executes the click
event of the last button selected instead of the keypress event of the
TextBox. Any key event happen in my form, even the keypreview event is
ignored. The propertie AcceptsReturn is set to false and AcceptButton to
none.
I can't understand the reason.
Thanks in advance for your help
Best regards