I have a form that takes user input and then let the user get connected to the SQL-Server.
This is happening on Button.Click. But where can I set the property Default button so that when the user clicks Enter it does the work of that button.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is called
AcceptButtonnow on the form; set that to the button that will be the default button.Refer to Form.AcceptButton Property