Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single Form lost Focus
Message
From
09/06/2009 15:16:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01404810
Message ID:
01404812
Views:
56
>Hi Gang!
>
>I have a small app (1 form), that when it comes up, it does not have focus.... I have to click on it to make the first field get focus.
>
>Here are the settings for the form....
>
>In the Init of the form I have
>
>Application.Visible = .F.
>_vfp.Visible = .F.
>_screen.Visible = .F.
>
>Thisform.txtInfo1.SetFocus
>
>and for the Forms WindowState I have Norma.
>
>What am I overlooking?
>
>Thanks!

Try to do it (setfocus) in Form.Activate (trigger it for 1st time only).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform