I have in my C# program textBox
I need that when the program start, the focus will be on the textBox
I try this on Form_Load:
MyTextBox.Focus();
but it wont work
Set theActiveControl property of the form and you should be fine.
ActiveControl
this.ActiveControl = yourtextboxname;
1.4m articles
1.4m replys
5 comments
57.0k users