How to set the default focus in a Textbox?

 Posted by vishalneeraj-24503 on 1/13/2014 | Category: C# Interview questions | Views: 577 | Points: 40
Answer:

We use Focus method of Textbox control to set focus i.e. cursor inside Textbox as

In form_load event we will write as:

txt_employee_first_name.Focus();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response