Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Focus issue
Message
From
05/03/2005 09:55:57
 
 
To
04/03/2005 15:48:46
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00992881
Message ID:
00993008
Views:
16
Hi Steven,

the way to achieve this is to have the Valid method set a flag, then do your Setfocus() (or call the new form) in the LostFocus() of the control based on the value of the flag.

Frank

>I have a valid event in a text box on my form which if a certain condition occurs I have the code click a button to release the form and open another. The second form has INIT code to set focus to a particular text box. I keep getting an error that set focus can not be called from a valid event. How is this possible between two different forms?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform