471,603 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

Fire a buttons click event when enter pressed in combo box

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
2 2775
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
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.

Similar topics

3 posts views Thread by Robert W. | last post: by
3 posts views Thread by David Lozzi | last post: by
19 posts views Thread by Daniela Roman | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.