By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,780 Members | 1,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,780 IT Pros & Developers. It's quick & easy.

How Button to get Click event when Enter is pressed

P: n/a
Al
Hi,
I have simple question does any one knows hoe to make a button receive click
even when enter is pressed.
Thanks
Al

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Al" <Al@discussions.microsoft.com> schrieb:
I have simple question does any one knows hoe to make a button receive
click
even when enter is pressed.


Assign the button to the form's 'AcceptButton' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

P: n/a
Al
Thanks!

"Herfried K. Wagner [MVP]" wrote:
"Al" <Al@discussions.microsoft.com> schrieb:
I have simple question does any one knows hoe to make a button receive
click
even when enter is pressed.


Assign the button to the form's 'AcceptButton' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

P: n/a


On the Form properties, the "AcceptButton" should be assigned the Button of
your choice. Just liek that!!

"Al" <Al@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.com...
Hi,
I have simple question does any one knows hoe to make a button receive click even when enter is pressed.
Thanks
Al

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.