0

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

3
Contributors
3
Replies
7
Views
9 Years
Discussion Span
Last Post by boomba23
2

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

Votes + Comments
right
0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.