Good day,

I must be blind .. I am developing my first "Visual Studio" desktop application. My apps are normally always Internet Apps.

I have about 20 text boxes, but I want to give the user the ability of pressing Enter, and "defaulting" to the Enter button on the screen.

I cannot figure out how to do this .. I have the KeyDown event working for one text box, but it makes no sense to copy this to every object.

Thank you very much,
Mark

Recommended Answers

go to your form properties go to misc and set keypreview to true and set your acceptbutton

Jump to Post

All 2 Replies

go to your form properties go to misc and set keypreview to true and set your acceptbutton

Knew I was blind! Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.