Fire a buttons click event when enter pressed in combo box

K

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
 
K

kohoutec

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top