Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditionaly Form Release
Message
 
 
To
28/07/2004 10:26:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00928710
Message ID:
00928718
Views:
20
You can use Thisfor.Activecontrol to find out whick control has focus.

>
>I am using VFP6. To relase forms I use following codes on form's keypress event
>
>
>IF LASTKEY()=27 && escape
>	RELEASE THISFORM
>ENDIF
>
>
>Now I want to release form with conditions e.g.
>
>Condition No.1
>
>if control/cursor is in grid and user press esc key then the form must not release.
>
>Contition No.2
>
>if control/cursor is not in grid and user press esc key then the form must release.
>
>What should I do more to apply above conditions.
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform