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

Fire a buttons click event when enter pressed in combo box

P: n/a
Hi

Im very much a beginner so apologies if my terminology is wrong. I have a
combo box with some items already loaded, the users can also enter a new
item. If they enter a new item and then press return on the keyboard I
want to fire a buttons click event.

I know I've seen how to do this somewhere but for the life of me cannot
remember where!

Thanks
Dec 3 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See Button.PerformClick

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"kohoutec" <ko******@f2s.com> wrote in message
news:op***************@laptop1.kohoutec...
Hi

Im very much a beginner so apologies if my terminology is wrong. I have a
combo box with some items already loaded, the users can also enter a new
item. If they enter a new item and then press return on the keyboard I
want to fire a buttons click event.

I know I've seen how to do this somewhere but for the life of me cannot
remember where!

Thanks

Dec 3 '05 #2

P: n/a
On Sat, 03 Dec 2005 12:40:30 -0000, Bob Powell [MVP]
<bob@_spamkiller_bobpowell.net> wrote:
See Button.PerformClick


Thanks Bob. I actually found what I was after using the forms AcceptButton
property, but any info is useful info at the moment.

Jon
Dec 3 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.