OnLoad event want to set the focus of a control
i m new to C# now i m using C# 1.1 ,i want to set the foucs of a text control when the form is load, i m using the method this.txtUsername.Focus(); but it does not work ,plz guide me as soon as possible
Scott LyslePosted Jan 4, 2007, 7:55 AM
To set the focus to some particular control on load, set the TabStop property to true and set the TabIndex property to 0.