Set the AcceptsReturn property on the TextBox:
You'll also need to set the AcceptButton property on the Form:
Brannon
On Wed, Jul 1, 2009 at 07:41, Brian Curtin
<brian.curtin@...> wrote:
On Wed, Jul 1, 2009 at 09:31, Sivaguru Perambalam
<itssivaguru@...> wrote:
Hello ,
I have a Windows form with a text box and a button.
What I want to implement it, when the user hits the 'Enter' key in the text box, the function that's linked to the ButtonClick event has to be invoked.
Please give me like a code example of how this could be done in a simpler way, since I am not familiar with Forms or GUI stuff .
Thanks !
_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com