General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only