Problem in validating the fields

I am creating a login page using VB 6.0.
I want to validate the text box field, ie on pageload cursor(controll) should focus on the username field.
can anybody help me to do this?
[193 byte] By [bsvnhll] at [2007-11-20 11:22:39]
# 1 Re: Problem in validating the fields
It's not too hard to validate a login. VB even has a built-in FmLogin on the Enterprise version of VB. Otherwise, create your own.

Use:

Text1.SetFocus

in Form_Activate, or set the TabIndex to 1
dglienna at 2007-11-9 19:33:29 >