Hitting return next to a text control

M

Mark Allison

Hi,

On my Windows Form I have a text control and a button. The text control
is single-line and I want the user to be able to type something in it,
but when they hit Enter, I want this to click the button, (so the user
doesn't have to click the button using a mouse).

How do I do that?

Thanks.

--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602m.html
 

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