Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activecontrol
Message
From
15/07/2001 07:44:14
 
 
To
15/07/2001 03:40:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00530617
Message ID:
00530759
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Yashodhan.

>> Basicaly what I want is, if user presses F2 key, I should know from which control he has done so. <<

I assume, then, that you are using an ON KEY LABEL. This is a bad idea because the OKL interrupts whatever is happening at the time to run the code associated with it. A better idea would be to set the form's KeyPreview property to true and use the Form's KeyPress event to trap for the F2 key. You have better control over when the code gets executed. And, in that case, Thisform.ActiveControl will work.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform