Focus on buttons and text fields

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hi,
how can i put focus on a button a textfield that if the form loads the
item is selected.

btnLogin.Focus = true does not seem to work.

Thanks
A
 
Hi Alex, It should be:

btnLogin.Focus()

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


: Hi,
: how can i put focus on a button a textfield that if the form loads the
: item is selected.
:
: btnLogin.Focus = true does not seem to work.
:
: Thanks
: A
:
 
Hello,

alex said:
how can i put focus on a button a textfield that if the form loads
the item is selected.

btnLogin.Focus = true does not seem to work.

Set its 'TabIndex' property to the lowest value on the form or call the
control's 'Focus' _method_ _after_ showing the form.
 
Back
Top