Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Key down events. (http://www.go4expert.com/forums/key-down-events-t9959/)

Timeaisis 11Apr2008 22:57

Key down events.
This is probably a stupid question, but I couldn't find it anywhere else.

I know there is a way, but I'm new to the language...anyway.

I'm trying to make it so that both a button press and the enter key will both call the same function, and I can get the button working find...but I don't know how to 'detect' if the enter key is down. I know of ways, but there must be something very simple that I'm overlooking...

thankks for the help.

shabbir 13Apr2008 10:51

Re: Key down events.
As far as I know you don't need to be doing anything unless you have messed up with the keyboard events

CyCloneNL 8May2008 23:23

Re: Key down events.
Look for the AcceptButton property of your form, if you set that to your button it will activate when the user presses the Enter key.

All times are GMT +5.5. The time now is 05:25.