?
=?ISO-8859-1?Q?S=E9rgio_Almeida?=
greetings
i have a form with a textbox and one button and i want the textbox to
have the focus when the form is loading. for this i put the following
code on the form's load event : this.textbox1.focus();
but this does not work. the button on my form gets the focus even when I
use the code above (by the way, the code above returns false). but if I
change the button's visible property to false, the code works and I get
the textbox focused on form load. How can I prevent this from happening?
any ideas will be appreciated.
TIA
Almeida
i have a form with a textbox and one button and i want the textbox to
have the focus when the form is loading. for this i put the following
code on the form's load event : this.textbox1.focus();
but this does not work. the button on my form gets the focus even when I
use the code above (by the way, the code above returns false). but if I
change the button's visible property to false, the code works and I get
the textbox focused on form load. How can I prevent this from happening?
any ideas will be appreciated.
TIA
Almeida