troubleshooting Question

VFP Blinky Cursor

Avatar of formadmirer
formadmirerFlag for United States of America asked on
FoxPro
10 Comments1 Solution650 ViewsLast Modified:
Hi all. Have a simple login form, just email and password textboxes. The email box has TabStop T and a Tab Index of 1.

When the form loads I would like to have the cursor placed inside the email textbox so the user can just start typing, instead of having to click in the box first.

I have tried to do this using code in init:
thisform.txtEmail.setfocus()
thisform.txtEmail.click()

and have also tried using the same code in the email textboxes' WHEN and GotFocus.

Additionally I've tried each of these with SelectOnEntry T and F.
Nothing has worked. I'm sure this has to be simple. Help please.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros