Hello,
I am building a software in WinForm C#.
When the window is opening, the cursor of the mouse should be placed in the textBox1.
This is the code i am using when the windows is opening, but it doesnt work:
textBox1.TabIndex = 0;
textBox1.Select(0,0);
textBox1.Focus();
The cursor is not in the textbox1, so i have to press the button "TAB" each time the window is opening to be able to enter my text
Does someone have an idea ?
Thx
I am building a software in WinForm C#.
When the window is opening, the cursor of the mouse should be placed in the textBox1.
This is the code i am using when the windows is opening, but it doesnt work:
textBox1.TabIndex = 0;
textBox1.Select(0,0);
textBox1.Focus();
The cursor is not in the textbox1, so i have to press the button "TAB" each time the window is opening to be able to enter my text
Does someone have an idea ?
Thx