| |
Sign In
i have a windows form with a textbox inside a panel, and the following code doesn't work as expected:
private void WizardLoad(object sender, System.EventArgs e) { this.txtUsername.Focus(); }
Thanks to someones post:
i now know that the best way to do it is as follows:
this.ActiveControl = this.txtUsername;
It works!
Remember Me