C# – how to change TextBox Focus in c#

cvisual studio

I am working in Windows Form framework of c# , i have developed a form consisting of two textboxes (name and address). Problem is when i start my application focus is on address rather then name, how can i change this settings? Thank you in advance.

Best Answer

Hope this ll help you. Select will change for user input

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        textBoxName.Select();
        textBoxName.Focus();

    }
}