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
In jquery set focus
$(function() { $("#txtBox1").focus(); });
or in Javascript you can do
window.onload = function() { document.getElementById("txtBox1").focus(); };