focus - Select textbox on form load in C# -


i need give focus specific textbox when application launched.

i'm using piece of code:

private void myform_load(object sender, eventargs e) {     mytextbox.select() } 

it works. correct way achieve goal?

use this:

mytextbox.focus(); 

or can set tab index on text box 0.


Comments