im getting an error while using
Text1.SetFocus
the error is
invalid procedure call or argument

i used this in the form load
and i suppose it is used to bring the cursor in the textbox during form load

use tab index to set cursor on current text box.
setfocus cannot be called in form load. just in procedure or function.

commented: right +1

thank u
the tabindex was set to 1 in the property and i set it to 0 in the form load code

You cannot Set textbox setfocus in Load event , if you want to set focus use with tab index
to 0 :) :)